5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 15:16:56 +00:00

fix e2e test

This commit is contained in:
JM Faircloth 2023-06-20 12:08:43 -05:00
parent f12fb0a370
commit d75da9fb40

View file

@ -10,9 +10,10 @@ describe('e2e', () => {
expect(process.env.FOO).toBe("bar"); expect(process.env.FOO).toBe("bar");
expect(process.env.NAMED_CUBBYSECRET).toBe("zap"); expect(process.env.NAMED_CUBBYSECRET).toBe("zap");
expect(process.env.SUBSEQUENT_TEST_SECRET).toBe("SUBSEQUENT_TEST_SECRET"); 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"}'; const jsonString = '{"x":1,"y":"qux"}';
expect(process.env.JSON_DATA).toBe(jsonString);
let jsonResult = JSON.stringify(jsonString); let jsonResult = JSON.stringify(jsonString);
jsonResult = jsonResult.substring(1, jsonResult.length - 1); jsonResult = jsonResult.substring(1, jsonResult.length - 1);
expect(process.env.JSON_STRING).toBe(jsonResult); expect(process.env.JSON_STRING).toBe(jsonResult);