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

Include does not work with object despite the specs #175

Closed
herrjemand opened this issue Sep 17, 2017 · 1 comment
Closed

Include does not work with object despite the specs #175

herrjemand opened this issue Sep 17, 2017 · 1 comment

Comments

@herrjemand
Copy link

So I am testing my API, that returns something like this:

{
    "authToken": "osujOkJpGLyhTVc9DBqs37U24PaBpz5CBC8k5Dr2"
}

When I run on response expect(response.body).should.deep.include('authToken'); I get

Uncaught AssertionError: object tested must be an array, a map, an object, a set, a string, or a weakset, but object given

@meeber
Copy link
Contributor

meeber commented Oct 19, 2017

This should be fixed in Chai v4.1.1 and later per chaijs/chai#1012

@meeber meeber closed this as completed Oct 19, 2017
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