mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-08 05:00:05 +00:00
Fix tests from jest-when version bump (#311)
* Fix tests from jest-when version bump * Delete unused test helpers * Add workflow_dispatch for tests
This commit is contained in:
parent
25737aea2b
commit
8e9712e63b
6 changed files with 40 additions and 51 deletions
|
|
@ -109,17 +109,17 @@ describe('integration', () => {
|
|||
jest.resetAllMocks();
|
||||
|
||||
when(core.getInput)
|
||||
.calledWith('url')
|
||||
.calledWith('url', expect.anything())
|
||||
.mockReturnValueOnce(`${vaultUrl}`);
|
||||
|
||||
when(core.getInput)
|
||||
.calledWith('token')
|
||||
.calledWith('token', expect.anything())
|
||||
.mockReturnValueOnce('testtoken');
|
||||
});
|
||||
|
||||
function mockInput(secrets) {
|
||||
when(core.getInput)
|
||||
.calledWith('secrets')
|
||||
.calledWith('secrets', expect.anything())
|
||||
.mockReturnValueOnce(secrets);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue