mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-02 05:55:10 +09:00
tests for disabled output-env-credentials
This commit is contained in:
committed by
kellertk
parent
3991c2aa73
commit
3b040fe7c1
@@ -45,4 +45,9 @@ describe('Configure AWS Credentials cleanup', {}, () => {
|
||||
cleanup();
|
||||
expect(core.setFailed).toHaveBeenCalled();
|
||||
});
|
||||
it(`doesn't export credentials as empty env variables if asked not to`, {}, () => {
|
||||
vi.spyOn(core, 'getInput').mockImplementation(mocks.getInput(mocks.NO_ENV_CREDS_INPUTS));
|
||||
cleanup();
|
||||
expect(core.exportVariable).toHaveBeenCalledTimes(0);
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user