Skip to content

Commit

Permalink
fix - ignored .DS_Store files
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 25, 2024
1 parent d020e48 commit c5b6ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/detect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function testAutoDetection(language, { detectPath }) {
const dir = await fs.stat(languagePath);
dir.isDirectory().should.be.true();

const filenames = await fs.readdir(languagePath);
const filenames = (await fs.readdir(languagePath))
.filter(fn => fn !== '.DS_Store');
await Promise.all(filenames
.map(async function(example) {
const filename = path.join(languagePath, example);
Expand Down

0 comments on commit c5b6ad5

Please sign in to comment.