Skip to content

Commit

Permalink
Merge pull request #357 from geireann/glindfieldro/vitest-assert
Browse files Browse the repository at this point in the history
Change `toEqual` to `toStrictEqual`
  • Loading branch information
ericelliott authored Jan 23, 2024
2 parents 2ad50a1 + 0bd4991 commit 4fcec76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esm/vitest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'vitest';

export const assert = ({ given, should, actual, expected }) => {
expect(actual, `Given ${given}: should ${should}`).toEqual(expected);
expect(actual, `Given ${given}: should ${should}`).toStrictEqual(expected);
};
2 changes: 1 addition & 1 deletion source/vitest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'vitest';

export const assert = ({ given, should, actual, expected }) => {
expect(actual, `Given ${given}: should ${should}`).toEqual(expected);
expect(actual, `Given ${given}: should ${should}`).toStrictEqual(expected);
};

0 comments on commit 4fcec76

Please sign in to comment.