Skip to content

Commit

Permalink
Fix xml tests that broke with mime update
Browse files Browse the repository at this point in the history
  • Loading branch information
focusaurus committed May 15, 2017
1 parent 8c03cb1 commit c0b3391
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"form-data": "^2.1.1",
"formidable": "^1.1.1",
"methods": "^1.1.1",
"mime": "^1.3.4",
"mime": "^1.3.6",
"qs": "^6.4.0",
"readable-stream": "^2.0.5"
},
Expand Down
2 changes: 1 addition & 1 deletion test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe('request', function(){
.accept('xml')
.end(function(err, res){
try {
res.header['accept'].should.equal('application/xml');
res.header['accept'].should.equal('text/xml');
done();
} catch(e) { done(e); }
});
Expand Down
2 changes: 1 addition & 1 deletion test/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ it('request .accept() with xml', function(next){
.accept('xml')
.end(function(err, res){
try {
assert.equal('application/xml', res.text, res.text);
assert.equal('text/xml', res.text, res.text);
next();
} catch(e) { next(e); }
});
Expand Down

0 comments on commit c0b3391

Please sign in to comment.