From 9baa64e46f19a2cb4980f42d97d366281e272178 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 19 Jun 2023 18:57:14 +0100 Subject: [PATCH] test: use `toStrictEqual()` over `toEqual()` --- src/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.test.js b/src/index.test.js index 7a9c7d3..0ecac3f 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -75,7 +75,7 @@ describe("JSON-To-XML plugin", () => { headers, }); - expect(JSON.parse(response.body)).toEqual(resBody); + expect(JSON.parse(response.body)).toStrictEqual(resBody); expect(response.headers["content-type"]).toBe( "application/json; charset=utf-8" );