Skip to content

Commit

Permalink
work on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitmaskit committed Jan 24, 2025
1 parent 70cd9f0 commit 55e3a38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/piper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function run (): Promise<void> {
}

async function preparePiperBinary (actionCfg: ActionConfiguration): Promise<void> {
const piperPath = await preparePiperPath(actionCfg)
const piperPath: string = await preparePiperPath(actionCfg)

if (piperPath === undefined || piperPath === '') {
throw new Error('Piper binary path is empty. Please check your action inputs.')
Expand Down
2 changes: 1 addition & 1 deletion test/piper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('Piper', () => {
jest.spyOn(download, 'downloadPiperBinary').mockReturnValue(Promise.resolve(''))

await piper.run()
expect(core.setFailed).toBeCalledWith('Piper binary path is empty. Please check your action inputs.')
expect(core.setFailed).toHaveBeenCalledWith('Piper binary path is empty. Please check your action inputs.')
expect(internalActionVariables.piperBinPath).toEqual('')
expect(execute.executePiper).not.toHaveBeenCalled()
expect(docker.cleanupContainers).toHaveBeenCalled()
Expand Down
1 change: 1 addition & 0 deletions test/sidecar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('Sidecar', () => {
gitHubEnterpriseServer: '',
gitHubEnterpriseApi: '',
gitHubEnterpriseToken: '',
wdfGithubEnterpriseToken: '',
dockerImage: '',
dockerOptions: '',
dockerEnvVars: '',
Expand Down

0 comments on commit 55e3a38

Please sign in to comment.