Created
November 15, 2019 10:43
-
-
Save mutaimwiti/0e76267e471fe1b6caa40c177b0f49cc to your computer and use it in GitHub Desktop.
supertest-scenario-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('supertest'); | |
describe('Articles', function () { | |
it('should allow users to list all articles', function (done) { | |
request(app).get('/articles').expect(200, done) | |
}); | |
it('should allow users to get one article', function (done) { | |
request(app).get('/articles/2').expect(200, done) | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment