Add Bryan's core code

This commit is contained in:
Danny McCormick
2019-05-16 16:40:21 -04:00
parent 1073897ccb
commit 5f66339fde
7 changed files with 321 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
'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)
// })