forwardemail / forwardemail/supertest
Do I have to repeat request(app)?
Open
- Dominant language
- JavaScript
- Stars
- 14.4k
- Forks
- 782
- PR merge metrics
- No merged PRs in 30d
Description
Is there merit in repeating `request(app)`? Do I have to keep repeating it on every test? Can I just perform this step in one initialization file and forget about it?
I'm talking about this:
```
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)
});
});
```
Contributor guide
Assessment
This issue has not been assessed yet.