jasmine-supertest
Small library to ease the pain of using SuperTest in combination with Jasmine
If you use Supertest in combination with Jasmine, you cannot use the done callback out-of-the-box (see https://github.com/jasmine/jasmine-npm/issues/31). This library eases this pain.
Installation
npm install jasmine-supertest
Usage
jasmine-supertest simply adds a wrapper function you can use to finish SuperTest testcases. Instead of writing .end(done)
you simply have to call finishTestcase(done)
.
var server = ;var supertest = ;var finishTestcase = ; ;