-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test file didn't do the test #897
Comments
I found the reason, the code should be |
Brackets? Do you mean parentheses? The parentheses in |
I think they are different. For the code I posted, if you use |
https://github.com/visionmedia/supertest/blob/master/test/supertest.js#L26, in this line , they used |
https://github.com/sahat/hackathon-starter/blob/master/test/app.js#L8 For this line it should be |
Thank you. Fixed with 623c2a6 |
If I change some test code to
describe('GET /random-url', () => { it('should return null', (done) => { request(app) .get('/reset') .expect(null, done()); }); });
The test can still pass. I don't think this is correct.
If it were correct, what's the meaning of this test script?
The text was updated successfully, but these errors were encountered: