tswatch/test/test.ts
2022-03-14 21:17:36 +01:00

21 lines
568 B
TypeScript

// tslint:disable-next-line: no-implicit-dependencies
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as tswatch from '../ts/index.js';
let testTsWatchInstance: tswatch.TsWatch;
tap.test('should create a valid TsWatch instance', async () => {
testTsWatchInstance = new tswatch.TsWatch('echoSomething');
});
tap.test('should start the tswatch instance', async () => {
await testTsWatchInstance.start();
});
tap.test('should stop the instance', async (tools) => {
tools.delayFor(2000);
testTsWatchInstance.stop();
});
tap.start();