Skip to content

Update tests to Supertest 2.0.0

Compare
Choose a tag to compare
@glebec glebec released this 31 Jul 22:19
· 7 commits to master since this release

Supertest 2 removes type coercion in expects for fields, so the content-length checks in the test suite had to be changed to strings:

// before
expect('Content-Length', 33)
// after
expect('Content-Length', '33')