From 4827f717fff54c14aef7a9ab64476fc62dfeb076 Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Tue, 20 Jun 2023 12:11:27 -0500 Subject: [PATCH] fix e2e test 2 --- integrationTests/e2e/e2e.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integrationTests/e2e/e2e.test.js b/integrationTests/e2e/e2e.test.js index 52f1db1..25d6ad0 100644 --- a/integrationTests/e2e/e2e.test.js +++ b/integrationTests/e2e/e2e.test.js @@ -12,9 +12,10 @@ describe('e2e', () => { expect(process.env.SUBSEQUENT_TEST_SECRET).toBe("SUBSEQUENT_TEST_SECRET"); const jsonString = '{"x":1,"y":"qux"}'; - expect(process.env.JSON_DATA).toBe(jsonString); - let jsonResult = JSON.stringify(jsonString); + + expect(process.env.JSON_DATA).toBe(jsonResult); + jsonResult = jsonResult.substring(1, jsonResult.length - 1); expect(process.env.JSON_STRING).toBe(jsonResult); });