fix(core): update

This commit is contained in:
2020-07-11 16:07:30 +00:00
parent 50f1aad895
commit 29ec99e63e
9 changed files with 50 additions and 89 deletions

View File

@ -1,21 +0,0 @@
import { tap, expect } from '../ts/index';
import * as randomstring from 'randomstring';
const test1 = tap.test('my first test -> expect true to be true', async (tools) => {
await tools.checkIterationLeak(async () => {
const domain = randomstring.generate(1000);
});
});
const outsideArray = [];
const test2 = tap.test('should throw', async (tools) => {
const err = await tools.returnError(async () => {
await tools.checkIterationLeak(async () => {
outsideArray.push(randomstring.generate(1000));
});
});
expect(err).to.be.undefined;
});
tap.start();

View File

@ -1,10 +1,5 @@
import { tap, expect } from '../ts/index';
import { tap, expect, TapWrap } from '../ts/index';
const tapwrap = tap.wrap(async () => {
tap.test('should do something', async () => {
console.log('test1');
});
tap.start();
});
tap.test('should run a test', async () => {});
tapwrap.run();
tap.start();