Skip to content
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

examples.controller.ts is wrong in template #5

Closed
eusorov opened this issue Feb 20, 2018 · 1 comment
Closed

examples.controller.ts is wrong in template #5

eusorov opened this issue Feb 20, 2018 · 1 comment
Assignees

Comments

@eusorov
Copy link

eusorov commented Feb 20, 2018

  1. .to.be.an.an('array')

two "an" is wrong. It should be .to.be.an('array')

  1. .expect('Content-Type', /json/)
    it should be a .set('Accept', 'application/json') before each expect.
    Otherwise we don't get json back from Server and the test fails.
@cdimascio
Copy link
Owner

@eusorov thanks again :). Fixed in 1.2.4

@cdimascio cdimascio self-assigned this Feb 20, 2018
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

No branches or pull requests

2 participants