Missing files.

This commit is contained in:
Gajus Kuizinas
2016-01-06 17:55:09 +00:00
parent e49a03d2ec
commit a91f9b8ead
42 changed files with 554 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import {
expect
} from 'chai';
import sortByDepth from './../src/sortByDepth';
describe('sortByDepth()', () => {
it('sorts from deepest to the most shallow', () => {
let paths,
sortedPaths;
paths = [
'/b',
'/a',
'/a/b/c',
'/a/b'
];
sortedPaths = sortByDepth(paths);
expect(sortedPaths).to.deep.equal(['/a/b/c', '/a/b', '/b', '/a']);
});
});