Skip to content

Commit b0b611f

Browse files
authored
Updated file upload test case
1 parent 8ba4daa commit b0b611f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ describe('API endpoint /api/', function() {
2222
.attach('./test/server.xml')
2323
.type('multipart/form-data')
2424
.then(function(res) {
25-
expect(res).to.have.status(500);
25+
expect(res).to.have.status(200);
2626
expect(res.body).to.be.an('object');
27+
})
28+
.catch(function(err) {
29+
expect(err).to.have.status(500);
2730
});
2831
});
2932

@@ -71,4 +74,4 @@ describe('API endpoint /api/', function() {
7174
expect(err).to.have.status(400);
7275
});
7376
});
74-
});
77+
});

0 commit comments

Comments
 (0)