We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b5ec2f commit 208877dCopy full SHA for 208877d
test/Test-FileStore.js
@@ -150,6 +150,13 @@ describe('FileStore', () => {
150
done();
151
});
152
153
+
154
+ it('should 404 paths without a file id', (done) => {
155
+ request(server.listen())
156
+ .head(`${STORE_PATH}/`)
157
+ .set('Tus-Resumable', TUS_RESUMABLE)
158
+ .expect(404, done);
159
+ });
160
161
162
describe('HEAD', () => {
@@ -204,5 +211,12 @@ describe('FileStore', () => {
204
211
205
212
206
213
214
215
+ it('should 404 files that dont exist', (done) => {
216
217
+ .head(`${STORE_PATH}/a_file_that_doesnt_exist`)
218
219
220
207
221
208
222
0 commit comments