Skip to content

Commit 3997499

Browse files
committed
explain import bindings case in code comment
1 parent bd3bc83 commit 3997499

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/rules/no-unnecessary-waiting.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ function isIdentifierNumberConstArgument (node, scope) {
7070
return typeof definition.node.init.value === 'number'
7171
}
7272

73-
// import { WAIT_TIME } from './constants'
74-
// cy.wait(WAIT_TIME)
73+
// import { WAIT } from './constants'
74+
// cy.wait(WAIT)
75+
// we don't know if WAIT is a number or alias '@someRequest', so don't fail
7576
if (isImportBinding) {
7677
return false
7778
}

0 commit comments

Comments
 (0)