1 | import { expect } from 'chai';
|
2 | import { glob } from '.';
|
3 |
|
4 | describe('glob', () => {
|
5 | it('finds several files', async () => {
|
6 | const pattern = `${__dirname}/glob*.ts`;
|
7 | const result = await glob.find(pattern);
|
8 | expect(result.length).to.eql(2);
|
9 | expect(result[0].endsWith('glob.test.ts')).to.eql(true);
|
10 | expect(result[1].endsWith('glob.ts')).to.eql(true);
|
11 | });
|
12 | });
|