diff --git a/integrationTests/e2e/e2e.test.js b/integrationTests/e2e/e2e.test.js index fac7c8a..52f1db1 100644 --- a/integrationTests/e2e/e2e.test.js +++ b/integrationTests/e2e/e2e.test.js @@ -10,9 +10,10 @@ describe('e2e', () => { expect(process.env.FOO).toBe("bar"); expect(process.env.NAMED_CUBBYSECRET).toBe("zap"); expect(process.env.SUBSEQUENT_TEST_SECRET).toBe("SUBSEQUENT_TEST_SECRET"); - expect(process.env.JSON_DATA).toBe({"x":1,"y":"qux"}); const jsonString = '{"x":1,"y":"qux"}'; + expect(process.env.JSON_DATA).toBe(jsonString); + let jsonResult = JSON.stringify(jsonString); jsonResult = jsonResult.substring(1, jsonResult.length - 1); expect(process.env.JSON_STRING).toBe(jsonResult);