Skip to content

Commit

Permalink
test(eta): replace typeof undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 29, 2023
1 parent 66341dd commit 13d7e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-eta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 13d7e29

Please sign in to comment.