From 81a564f17202a4db4564fd2171c785731285c64c Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 12 Jul 2019 16:37:53 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20refactor=20`exists`=20tes?= =?UTF-8?q?ts=20to=20be=20compatible=20w/=20`strictNullChecks`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/volume/exists.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/volume/exists.test.ts b/src/__tests__/volume/exists.test.ts index 48dd6207..b8004b13 100644 --- a/src/__tests__/volume/exists.test.ts +++ b/src/__tests__/volume/exists.test.ts @@ -16,7 +16,7 @@ describe('exists(path, callback)', () => { }); it('Throws correct error if callback not provided', done => { try { - vol.exists('/foo', undefined); + vol.exists('/foo', undefined as any); throw new Error('not_this'); } catch (err) { expect(err.message).toEqual('callback must be a function');