Skip to content

Commit

Permalink
docs(expect): fix typo on objectContaining example (#6357)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerpoliver authored Jan 22, 2025
1 parent 8e64d00 commit 1f4d0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expect/expect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ expect.assertions = assertions as (num: number) => void;
* import { expect } from "@std/expect";
*
* Deno.test("example", () => {
* expect({ bar: 'baz' }).toEqual(expect.objectContaining({ bar: 'bar'}));
* expect({ bar: 'baz' }).toEqual(expect.objectContaining({ bar: 'baz'}));
* expect({ bar: 'baz' }).not.toEqual(expect.objectContaining({ foo: 'bar'}));
* });
* ```
Expand Down

0 comments on commit 1f4d0b2

Please sign in to comment.