smartmatch/test/test.ts

14 lines
401 B
TypeScript
Raw Normal View History

2020-02-25 18:34:29 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2022-08-09 16:19:05 +00:00
import * as smartmatch from '../ts/index.js';
2020-02-25 18:34:29 +00:00
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');
2022-08-09 16:19:05 +00:00
expect(isAMatch).toBeTrue();
expect(isNotAMatch).toBeFalse();
2020-02-25 18:34:29 +00:00
});
tap.start();