feat: make secret names less derp for tsts

This commit is contained in:
Richard Simpson 2019-09-20 17:29:13 -05:00
parent 13eebbc4e5
commit b524055d38
No known key found for this signature in database
GPG key ID: 0CECAF50D013D1E2
5 changed files with 19 additions and 26 deletions

View file

@ -1,7 +1,7 @@
describe('e2e', () => {
it('verify', () => {
expect(process.env.A).toBe("1");
expect(process.env.NAMED_TOKEN).toBe("1");
expect(process.env.E).toBe("4");
expect(process.env.SECRET).toBe("SUPERSECRET");
expect(process.env.NAMED_SECRET).toBe("SUPERSECRET");
expect(process.env.OTHERSECRET).toBe("OTHERSUPERSECRET");
});
});

View file

@ -16,9 +16,7 @@ const got = require('got');
},
body: {
data: {
a: 1,
b: 2,
c: 3,
secret: "SUPERSECRET",
},
},
json: true,
@ -31,9 +29,7 @@ const got = require('got');
},
body: {
data: {
e: 4,
f: 5,
g: 6,
otherSecret: "OTHERSUPERSECRET",
},
},
json: true,