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 {
expect
} from 'chai';
import sortByDepth from './../src/utilities/sortByDepth';
describe('sortByDepth()', () => {
it('sorts from deepest to the most shallow', () => {
const paths = [
'/b',
'/a',
'/a/b/c',
'/a/b'
];
const sortedPaths = sortByDepth(paths);
expect(sortedPaths).to.deep.equal(['/a/b/c', '/a/b', '/b', '/a']);
});
});