BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-08-09 18:19:05 +02:00
parent b9791c9df4
commit 4d3e1ddf9f
13 changed files with 12331 additions and 2439 deletions

View File

@ -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();