From 50ece41861b565239528923369690fc43cc0050b Mon Sep 17 00:00:00 2001 From: Richard Simpson Date: Tue, 31 Mar 2020 12:20:05 -0500 Subject: [PATCH] chore: I really should PR changes --- action.test.js | 16 ++++++---------- integrationTests/enterprise/enterprise.test.js | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/action.test.js b/action.test.js index 5765441..e400f0c 100644 --- a/action.test.js +++ b/action.test.js @@ -198,19 +198,15 @@ describe('exportSecrets', () => { function mockVaultData(data, version='2') { switch(version) { case '1': - got.mockResolvedValue({ - body: JSON.stringify({ - data - }) + got.extend.mockReturnValue({ + get: async () => ({ body: JSON.stringify({ data }) }) }); break; case '2': - got.mockResolvedValue({ - body: JSON.stringify({ - data: { - data - } - }) + got.extend.mockReturnValue({ + get: async () => ({ body: JSON.stringify({ data: { + data + } }) }) }); break; } diff --git a/integrationTests/enterprise/enterprise.test.js b/integrationTests/enterprise/enterprise.test.js index c1e979f..6e5a2ba 100644 --- a/integrationTests/enterprise/enterprise.test.js +++ b/integrationTests/enterprise/enterprise.test.js @@ -228,7 +228,7 @@ describe('authenticate with approle', () => { .mockReturnValueOnce('ns2'); }); - it.only('authenticate with approle', async() => { + it('authenticate with approle', async() => { mockInput('test secret'); await exportSecrets();