mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-22 22:58:05 +08:00
Add Bryan's core code
This commit is contained in:
29
packages/core/__tests__/lib.test.ts
Normal file
29
packages/core/__tests__/lib.test.ts
Normal 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)
|
||||
// })
|
||||
Reference in New Issue
Block a user