Skip to content

Commit

Permalink
Chore: add test cases for for-direction (#12698)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan authored and platinumazure committed Dec 23, 2019
1 parent b340304 commit 39f5a45
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/lib/rules/for-direction.js
Expand Up @@ -53,7 +53,13 @@ ruleTester.run("for-direction", rule, {
"for(var i = 10; i >= 0; i %= 2){}",
"for(var i = 0; i < MAX; i += STEP_SIZE);",
"for(var i = 0; i < MAX; i -= STEP_SIZE);",
"for(var i = 10; i > 0; i += STEP_SIZE);"
"for(var i = 10; i > 0; i += STEP_SIZE);",

// other cond-expressions.
"for(var i = 0; i !== 10; i+=1){}",
"for(var i = 0; i === 10; i+=1){}",
"for(var i = 0; i == 10; i+=1){}",
"for(var i = 0; i != 10; i+=1){}"
],
invalid: [

Expand Down

0 comments on commit 39f5a45

Please sign in to comment.