Skip to content

Commit c5b6ad5

Browse files
committed
fix - ignored .DS_Store files
1 parent d020e48 commit c5b6ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/detect/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ function testAutoDetection(language, { detectPath }) {
1717
const dir = await fs.stat(languagePath);
1818
dir.isDirectory().should.be.true();
1919

20-
const filenames = await fs.readdir(languagePath);
20+
const filenames = (await fs.readdir(languagePath))
21+
.filter(fn => fn !== '.DS_Store');
2122
await Promise.all(filenames
2223
.map(async function(example) {
2324
const filename = path.join(languagePath, example);

0 commit comments

Comments
 (0)