smartexit/test/test.ts

15 lines
335 B
TypeScript
Raw Normal View History

2019-05-16 13:10:22 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2019-05-16 16:48:45 +00:00
import * as smartexit from '../ts/index';
2019-05-16 13:10:22 +00:00
2019-05-19 20:12:21 +00:00
let testSmartexit: smartexit.SmartExit;
2019-05-16 13:10:22 +00:00
tap.test('first test', async () => {
2019-05-19 20:12:21 +00:00
testSmartexit = new smartexit.SmartExit();
2019-05-16 16:48:45 +00:00
});
2019-05-16 13:10:22 +00:00
2021-07-27 11:42:13 +00:00
tap.test('should end processes upon SIGINT', async (tools) => {
2019-05-16 16:48:45 +00:00
await tools.delayFor(5000);
});
tap.start();