Skip to content

Commit 6abeaac

Browse files
committed
test(rule): output correct positiom, if mixed str and any
1 parent 998a762 commit 6abeaac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/max-ten-test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,19 @@ tester.run("max-ten", rule, {
5858
column: 21
5959
}
6060
]
61+
},
62+
{
63+
text: "間に、Str以外の`code`Nodeが、あっても、OK",
64+
options: {
65+
"max": 3
66+
},
67+
errors: [
68+
{
69+
message: `一つの文で"、"を3つ以上使用しています`,
70+
line: 1,
71+
column: 26
72+
}
73+
]
6174
}
6275
]
6376
});

0 commit comments

Comments
 (0)