smartexit/test/test.ts

15 lines
339 B
TypeScript
Raw Normal View History

2023-09-11 08:29:01 +00:00
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartexit from '../ts/index.js';
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();