smartexit/test/test.ts
2021-07-27 13:42:13 +02:00

15 lines
335 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as smartexit from '../ts/index';
let testSmartexit: smartexit.SmartExit;
tap.test('first test', async () => {
testSmartexit = new smartexit.SmartExit();
});
tap.test('should end processes upon SIGINT', async (tools) => {
await tools.delayFor(5000);
});
tap.start();