Skip to content

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

GLSea1979
Copy link

No description provided.

});
});

describe('GET: api/gallery', done => {

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);

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`)
Copy link

@Raziyehbazargan Raziyehbazargan Mar 10, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants