From 67672f5c694a4dfeeafa27e1b332e21dc5a81701 Mon Sep 17 00:00:00 2001 From: Geireann Lindfield Roberts Date: Tue, 23 Jan 2024 14:53:24 -0800 Subject: [PATCH] Change `toEqual` to `toStrictEqual` --- esm/vitest.js | 2 +- source/vitest.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esm/vitest.js b/esm/vitest.js index dfd09a46..fe014a8e 100644 --- a/esm/vitest.js +++ b/esm/vitest.js @@ -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); }; diff --git a/source/vitest.js b/source/vitest.js index dfd09a46..fe014a8e 100644 --- a/source/vitest.js +++ b/source/vitest.js @@ -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); };