Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Isaac committed Dec 11, 2024
1 parent d201278 commit bdd3d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/js/node/assert/assert-doesNotMatch.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test("doesNotMatch does not throw when not matching", () => {

test("doesNotMatch throws when argument is not string", () => {
expect(() => assert.doesNotMatch(123, /pass/)).toThrow(
'The "actual" argument must be of type string. Received type number',
'The "string" argument must be of type string. Received type number',
);
});

Expand Down
2 changes: 1 addition & 1 deletion test/js/node/assert/assert-match.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test("match does not throw when matching", () => {
});

test("match throws when argument is not string", () => {
expect(() => assert.match(123, /pass/)).toThrow('The "actual" argument must be of type string. Received type number');
expect(() => assert.match(123, /pass/)).toThrow('The "string" argument must be of type string. Received type number');
});

test("match throws when not matching", () => {
Expand Down

0 comments on commit bdd3d15

Please sign in to comment.