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

Test http error type #62

Closed
vallettea opened this issue Oct 26, 2015 · 0 comments
Closed

Test http error type #62

vallettea opened this issue Oct 26, 2015 · 0 comments

Comments

@vallettea
Copy link
Contributor

The tests in security are not enough

I wanted to use

expect(api.deletePlace(id)).to.be.rejectedWith('HTTP error').and.be.an.instanceOf(Error).and.have.property("HTTPstatus", 403);

but it seems there is a bug in chai as promised since this doesn't work see chaijs/chai-as-promised#47

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

1 participant