Skip to content

Commit

Permalink
chore: move test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Mar 22, 2024
1 parent 540ca74 commit 97309e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expect/_equal_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ Deno.test("equal() matches when values are equal", function () {
});

Deno.test("equal() does not match with different instances", () => {
assert(!equal({}, []));
assert(!equal(/foo/, new Set()));
assert(!equal(new Set(), new Map()));
assert(!equal(null, 2));
assert(!equal(2, null));
});

Deno.test("equal() does not match with different collection contents", () => {
assert(!equal({}, []));
assert(!equal(new Set([1]), new Set([2])));
assert(!equal(new Map([[1, 2]]), new Map([[2, 1]])));
assert(equal(new Map([[1, 2]]), new Map([[1, 2]])));
Expand Down

0 comments on commit 97309e7

Please sign in to comment.