BREAKING CHANGE(core): switch to esm
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartmatch from '../ts/index';
|
||||
import * as smartmatch from '../ts/index.js';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
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;
|
||||
expect(isAMatch).toBeTrue();
|
||||
expect(isNotAMatch).toBeFalse();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user