mirror of https://github.com/actions/toolkit
30 lines
668 B
TypeScript
30 lines
668 B
TypeScript
|
'use strict';
|
||
|
|
||
|
import * as core from '../src/lib'
|
||
|
|
||
|
describe('@actions/core', () => {
|
||
|
it('needs tests', () => {
|
||
|
|
||
|
});
|
||
|
});
|
||
|
|
||
|
|
||
|
// 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)
|
||
|
// })
|