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

Suggestion: A "whatever" value #64

Closed
fega opened this issue May 17, 2017 · 2 comments
Closed

Suggestion: A "whatever" value #64

fega opened this issue May 17, 2017 · 2 comments

Comments

@fega
Copy link

fega commented May 17, 2017

something like:

const chai = require('chai')
const expect = require('chai').expect
const chaiSubset = require('chai-subset')
const whatever = require('chai-subset').whatever
chai.use(chaiSubset)

let json = {
 "whatever": "dsdfsdsdsfsa"
}


let goodSubset = {
 "whatever": whatever
}
@eagleeye
Copy link
Contributor

eagleeye commented Aug 2, 2017

Feel free to create PR, looks like useful feature

@sergejsha
Copy link
Contributor

@fega, starting with version 1.6.0 you should be able to check for whatever value like this

let goodSubset = {
    "whatever": (whatever) => whatever
}

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

3 participants