From 15390f3760687c72f9ab37b611fcff30284e8104 Mon Sep 17 00:00:00 2001 From: Barry Gordon Date: Mon, 1 Nov 2021 11:35:12 +0000 Subject: [PATCH] Add an assert to ensure we aren't masking blank values --- __tests__/api_client.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/api_client.test.ts b/__tests__/api_client.test.ts index 5179114..87842b8 100644 --- a/__tests__/api_client.test.ts +++ b/__tests__/api_client.test.ts @@ -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')