1
0
Fork 0
toolkit/packages/core/__tests__/lib.test.ts

50 lines
969 B
TypeScript

'use strict';
import * as core from '../src/lib'
describe('@actions/core', () => {
it('tests exportVariable', () => {
// TODO
});
it('tests getInput', () => {
// TODO
});
it('tests setFailure', () => {
// TODO
});
it('tests error', () => {
// TODO
});
it('tests warning', () => {
// TODO
});
it('tests debug', () => {
// TODO
});
});
// it('exits successfully', () => {
// jest.spyOn(process, 'exit').mockImplementation()
// core.fail('testing fail');
// exit.success()
// expect(process.exit).toHaveBeenCalledWith(0)
// })
// it('exits as a failure', () => {
// jest.spyOn(process, 'exit').mockImplementation()
// exit.failure()
// expect(process.exit).toHaveBeenCalledWith(1)
// })
// it('exits neutrally', () => {
// jest.spyOn(process, 'exit').mockImplementation()
// exit.neutral()
// expect(process.exit).toHaveBeenCalledWith(78)
// })