fix(core): update
This commit is contained in:
10
test/test.ts
10
test/test.ts
@ -1,8 +1,14 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartarray from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log(smartarray.standardExport);
|
||||
tap.test('should filter', async () => {
|
||||
const originalArray = [1,2,3,4,5,6];
|
||||
expect(originalArray).to.contain(2);
|
||||
expect(originalArray).to.contain(3);
|
||||
const result = await smartarray.filter(originalArray, async itemArg => itemArg !== 3);
|
||||
expect(originalArray).to.contain(2);
|
||||
expect(result).to.not.contain(3);
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user