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();