We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If the assertion fails, expect(actual).toMatchObject(expected) shows that it expected actual "to NOT match" [sic]:
expect(actual).toMatchObject(expected)
actual
Steps to Reproduce
import { it } from '@std/testing/bdd'; import { expect } from '@std/expect'; const expected = { field1: 'abc', field2: 'def', foo: 'bar', } it('toMatchObject', () => { expect({ field1: 'abc', field2: 'def', foo: 'baz', }).toMatchObject(expected); });
$ deno test denobug.test.ts running 1 test from ./denobug.test.ts toMatchObject ... FAILED (2ms) ERRORS toMatchObject => https://jsr.io/@std/testing/1.0.5/_test_suite.ts:218:10 error: AssertionError: Expected { field1: "abc", field2: "def", foo: "baz", } to NOT match { field1: "abc", field2: "def", foo: "bar", }
Expected behavior
The output should omit NOT .
NOT
Environment
The text was updated successfully, but these errors were encountered:
toMatchObject
Successfully merging a pull request may close this issue.
Describe the bug
If the assertion fails,
expect(actual).toMatchObject(expected)
shows that it expectedactual
"to NOT match" [sic]:Steps to Reproduce
Expected behavior
The output should omit
NOT
.Environment
The text was updated successfully, but these errors were encountered: