fix(core): update

This commit is contained in:
2020-02-25 19:02:52 +00:00
parent 385285d897
commit 7d240b3461
5 changed files with 32 additions and 5 deletions

View File

@@ -2,7 +2,12 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmatch from '../ts/index';
tap.test('first test', async () => {
console.log(smartmatch.standardExport);
const smartMatchInstance = new smartmatch.SmartMatch('*.any');
const isAMatch = smartMatchInstance.match('wow.any');
const isNotAMatch = smartMatchInstance.match('wow.not');
expect(isAMatch).to.be.true;
expect(isNotAMatch).to.be.false;
});
tap.start();