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

fix e2e test 2

This commit is contained in:
JM Faircloth 2023-06-20 12:11:27 -05:00
parent d75da9fb40
commit 4827f717ff

View file

@ -12,9 +12,10 @@ describe('e2e', () => {
expect(process.env.SUBSEQUENT_TEST_SECRET).toBe("SUBSEQUENT_TEST_SECRET"); expect(process.env.SUBSEQUENT_TEST_SECRET).toBe("SUBSEQUENT_TEST_SECRET");
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);
expect(process.env.JSON_DATA).toBe(jsonResult);
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);
}); });