Files
attest-sbom/__tests__/index.test.ts
T
Brian DeHamer ae2702efaf bump eslint from 8.57.1 to 9.16.0 (#139)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-12-16 07:18:21 -08:00

18 lines
408 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', () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../src/index')
expect(runMock).toHaveBeenCalled()
})
})