Skip to content

Commit

Permalink
Update supertest to version 2.0.0 🚀 (#11)
Browse files Browse the repository at this point in the history
* chore(package): update supertest to version 2.0.0

https://greenkeeper.io/

* makes test compatible with supertest 2 via stringified content length
  • Loading branch information
greenkeeperio-bot authored and glebec committed Jul 31, 2016
1 parent 59f116a commit 6382df1
Show file tree
Hide file tree
Showing 2 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 @@ -47,6 +47,6 @@
"mocha": "~2.5.3",
"sinon": "~1.17.4",
"sinon-chai": "~2.8.0",
"supertest": "~1.2.0"
"supertest": "~2.0.0"
}
}
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('`res.sendSeekable`', function () {
});

it('sets the `Content-Length` header to the content byte length', function (done) {
appTester.expect('Content-Length', content.length, done);
appTester.expect('Content-Length', content.length.toString(), done);
});

testInvariantBehavior();
Expand All @@ -146,7 +146,7 @@ describe('`res.sendSeekable`', function () {
});

it('sets the `Content-Length` header to the content byte length', function (done) {
appTester.expect('Content-Length', content.length, done);
appTester.expect('Content-Length', content.length.toString(), done);
});

it('sets the `Content-Type` header if configured', function (done) {
Expand Down

0 comments on commit 6382df1

Please sign in to comment.