smartmatch/test/test.ts

14 lines
398 B
TypeScript
Raw Normal View History

2020-02-25 18:34:29 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmatch from '../ts/index';
tap.test('first test', async () => {
2020-02-25 19:02:52 +00:00
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;
2020-02-25 18:34:29 +00:00
});
tap.start();