Skip to content

Commit

Permalink
explain import bindings case in code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
walaszczykm committed Apr 11, 2023
1 parent bd3bc83 commit 3997499
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rules/no-unnecessary-waiting.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ function isIdentifierNumberConstArgument (node, scope) {
return typeof definition.node.init.value === 'number'
}

// import { WAIT_TIME } from './constants'
// cy.wait(WAIT_TIME)
// import { WAIT } from './constants'
// cy.wait(WAIT)
// we don't know if WAIT is a number or alias '@someRequest', so don't fail
if (isImportBinding) {
return false
}
Expand Down

0 comments on commit 3997499

Please sign in to comment.