Skip to content

Commit 69f0ab8

Browse files
committed
Revert
1 parent 51622b1 commit 69f0ab8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/rest/REST_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ describe('REST - Form upload', () => {
319319
})
320320

321321
describe('upload file', () => {
322-
it('should show error when file size exceedes the permit', async (done) => {
322+
it('should show error when file size exceedes the permit', async () => {
323323
const form = new FormData()
324324
form.append('file', fs.createReadStream(testFile))
325325

@@ -328,10 +328,9 @@ describe('REST - Form upload', () => {
328328
} catch (error) {
329329
error.message.should.eql('Request body larger than maxBodyLength limit')
330330
}
331-
done();
332331
})
333332

334-
it('should not show error when file size doesnt exceedes the permit', async (done) => {
333+
it('should not show error when file size doesnt exceedes the permit', async () => {
335334
const form = new FormData()
336335
form.append('file', fs.createReadStream(testFile))
337336

@@ -341,7 +340,6 @@ describe('REST - Form upload', () => {
341340
} catch (error) {
342341
console.log(error.message)
343342
}
344-
done();
345343
})
346344
})
347345
})

0 commit comments

Comments
 (0)