Files
attest-sbom/__tests__/index.test.ts
T
Eugene 69180bebd9 Unit Test (#12)
* annoying tests..

* update test

* udpate

* update the tests
2024-02-28 17:22:13 -08:00

18 lines
414 B
TypeScript

/**
* Unit tests for the action's entrypoint, src/index.ts
*/
import * as main from '../src/main'
// Mock the action's entrypoint
const runMock = jest.spyOn(main, 'run').mockImplementation()
describe('index', () => {
it('calls run when imported', async () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../src/index')
expect(runMock).toHaveBeenCalled()
})
})