diff --git a/src/index-v11.js b/src/index-v11.js index 3f16959..4c16e6e 100644 --- a/src/index-v11.js +++ b/src/index-v11.js @@ -220,7 +220,7 @@ Cypress.Commands.add('else', { prevSubject: true }, (subject, text) => { // find the subject from the "if()" before subject = findMyIfSubject(cy.state('current').attributes) } - if (typeof text !== undefined) { + if (typeof text !== 'undefined') { cy.log(text) } if (subject) {