-
Notifications
You must be signed in to change notification settings - Fork 15
Lab gary wed #35
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
base: master
Are you sure you want to change the base?
Lab gary wed #35
Conversation
}); | ||
}); | ||
|
||
describe('GET: api/gallery', done => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use done in describe block, change it to :
describe('GET: api/gallery', () => {..}
request.post(`{url}/api/gallery`) | ||
.send() | ||
.end(err => { | ||
expect(err.status).to.equal(400); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because you are not set Authorization in Header, it's an unauthorized error (401)
|
||
it('should return a 400 error with no/invalid body', done => { | ||
debug('inside POST 400 error test'); | ||
request.post(`{url}/api/gallery`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change it to request.post(
${url}/api/gallery)
No description provided.