Skip to content

Commit

Permalink
Fix missing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 27, 2023
1 parent 58dfebe commit fb84132
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/util.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,13 @@ describe('util', () => {
).to.eql('some-host');
});
});

describe('fileExistsCaseInsensitive', () => {
it('detects when a file does not exist inside a dir that does exist', async () => {
fsExtra.ensureDirSync(tempDir);
expect(
await util.fileExistsCaseInsensitive(s`${tempDir}/not-there`)
).to.be.false;
});
});
});

0 comments on commit fb84132

Please sign in to comment.