Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 98b5c01

Browse files
danielreardenIvanGoncharov
authored andcommitted
Modify file upload test
1 parent 44e8ce6 commit 98b5c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/http-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,13 +957,13 @@ function runTests(server: Server) {
957957
uploadFile { originalname, mimetype }
958958
}`,
959959
)
960-
.attach('file', __filename);
960+
.attach('file', Buffer.from('test'), 'test.txt');
961961

962962
expect(JSON.parse(response.text)).to.deep.equal({
963963
data: {
964964
uploadFile: {
965-
originalname: 'http-test.js',
966-
mimetype: 'application/javascript',
965+
originalname: 'test.txt',
966+
mimetype: 'text/plain',
967967
},
968968
},
969969
});

0 commit comments

Comments
 (0)