Skip to content

Commit

Permalink
some linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Jul 31, 2024
1 parent ecd7de0 commit f9cb3b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions __tests__/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const platformMock = jest.spyOn(os, 'platform').mockImplementation()

// Mock the action's main functions
const runMock = jest.spyOn(main, 'run')
const execMock = jest.spyOn(main , 'execAsync')
const execMock = jest.spyOn(main, 'execAsync')

describe('action', () => {
beforeEach(() => {
Expand Down Expand Up @@ -58,12 +58,10 @@ describe('action', () => {
})

it('execAsync is called', async () => {

execMock.mockImplementation('','')
execMock.mockImplementation('', '')
await main.execAsync()
expect(execMock).toHaveBeenCalledTimes(1)
expect(execMock).toHaveReturned()

})

// TODO: Add tests related to validating email address
Expand Down

0 comments on commit f9cb3b5

Please sign in to comment.