From 11745fcf0a2ff38aa38adb4d29a5522546004332 Mon Sep 17 00:00:00 2001 From: Kevin Schoonover Date: Wed, 6 Apr 2022 18:10:47 -0700 Subject: [PATCH] add test --- src/action.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/action.test.js b/src/action.test.js index 1837eaf..83ffed7 100644 --- a/src/action.test.js +++ b/src/action.test.js @@ -331,4 +331,13 @@ with blank lines expect(command.issue).toBeCalledWith('add-mask', 'with blank lines'); expect(core.setOutput).toBeCalledWith('key', multiLineString); }) + + it('export only Vault token, no secrets', async () => { + mockExportToken("true") + + await exportSecrets(); + + expect(core.exportVariable).toBeCalledTimes(1); + expect(core.exportVariable).toBeCalledWith('VAULT_TOKEN', 'EXAMPLE'); + }) });