From fb84132f9ba3db58fa6677a64421713146ca31e0 Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Mon, 27 Nov 2023 11:56:29 -0500 Subject: [PATCH] Fix missing coverage --- src/util.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util.spec.ts b/src/util.spec.ts index e5ec522..24efcfe 100644 --- a/src/util.spec.ts +++ b/src/util.spec.ts @@ -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; + }); + }); });