Skip to content

Commit

Permalink
Add an assert to ensure we aren't masking blank values
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Nov 1, 2021
1 parent 0b77c6c commit 15390f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/api_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ describe('ApiClient', () => {
const jobCredentials = await api.getCredentials()
expect(jobCredentials.length).toBe(4)

expect(core.setSecret).toHaveBeenCalledTimes(4)
expect(core.setSecret).toHaveBeenCalledWith('bar-password')
expect(core.setSecret).toHaveBeenCalledWith('baz-token')
expect(core.setSecret).toHaveBeenCalledWith('qux-password')
Expand Down

0 comments on commit 15390f3

Please sign in to comment.