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
|
|
|
|
|
|
|
tap.test('first test', async () => {
|
2019-05-16 16:48:45 +00:00
|
|
|
smartexit;
|
|
|
|
});
|
2019-05-16 13:10:22 +00:00
|
|
|
|
2019-05-16 16:48:45 +00:00
|
|
|
tap.test('should end processes upon SIGINT', async tools => {
|
|
|
|
await tools.delayFor(5000);
|
|
|
|
});
|
|
|
|
|
|
|
|
tap.start();
|