mirror of https://github.com/actions/toolkit
50 lines
969 B
TypeScript
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)
|
|
// })
|