feat: cannot use create-index for short folders (#51)
* feat: file cannot be started from _ and be one symbol * test: add children-directories-short-name for readDirectory
This commit is contained in:
@@ -21,6 +21,13 @@ describe('readDirectory()', () => {
|
||||
expect(names).to.deep.equal(['present.js']);
|
||||
});
|
||||
});
|
||||
context('target directory contains child directories (short safe name)', () => {
|
||||
it('gets names of the children directories', () => {
|
||||
const names = readDirectory(path.resolve(fixturesPath, 'children-directories-short-name'));
|
||||
|
||||
expect(names).to.deep.equal(['F', 'T', '__', 'o']);
|
||||
});
|
||||
});
|
||||
context('target directory contains child directories (unsafe name)', () => {
|
||||
it('gets names of the children directories', () => {
|
||||
const names = readDirectory(path.resolve(fixturesPath, 'children-directories-unsafe-name'));
|
||||
|
||||
Reference in New Issue
Block a user