diff --git a/test/test-eta.js b/test/test-eta.js index 3a15a04..94d6352 100644 --- a/test/test-eta.js +++ b/test/test-eta.js @@ -844,7 +844,7 @@ test('fastify.view with eta engine in production mode should use cache', t => { const cache = { cache: {}, get (k) { - if (typeof this.cache[k] !== 'undefined') { + if (this.cache[k] !== undefined) { t.pass() } return this.cache[k]