-
Notifications
You must be signed in to change notification settings - Fork 11
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
Exclude specific nested key and not every? #41
Comments
Yes, thanks. const res = {a: 'aa', b: { a: 'hey', c: 'dd' }, c: 'dd1'};
expect(res).excluding('b').to.deep.equal({a: 'aa', c: 'dd1'});
expect(res.b).excluding('c').to.deep.equal({ a: 'hey' }); Thanks @mesaugat this is a really useful plugin, I'll watch #40. |
@TomerFi Yes, you are correct. I left out the outer keys in hopes that you would understand. |
Closing the issue. |
Hello
Cool project, thank you very much for sharing!
Is there a way for excluding a specific nested key? not every key.
Instead of this:
Something like this:
The text was updated successfully, but these errors were encountered: