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:
parent
f12fb0a370
commit
d75da9fb40
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue