chore: rename ./tests to ./test

This commit is contained in:
Gajus Kuizinas
2016-11-01 15:31:00 +00:00
parent 78109764f7
commit 272a836c96
45 changed files with 1 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
import path from 'path';
import {
expect
} from 'chai';
import glob from 'glob';
import findIndexFiles from '../src/utilities/findIndexFiles';
const fixturesPath = path.resolve(__dirname, '../../fixtures/find-index-files');
describe('findIndexFiles()', () => {
it('finds only the directories that have an existing valid index file', () => {
let names;
names = findIndexFiles(path.resolve(fixturesPath));
names = names.sort();
expect(names).to.deep.equal(glob.sync(path.resolve(fixturesPath, '**/find-*')));
});
});