mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-30 03:34:22 +01:00
tests for disabled output-env-credentials
This commit is contained in:
1 parent
3d90187bb1
commit
33adce1577
5 files changed
+50
-2
No files matched your search
@@ -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