Skip to content

Commit 908e84e

Browse files
committed
chore: add a comment explaining why slice starts from index 1
1 parent b8230ed commit 908e84e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules/no-wait-for-multiple-assertions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
106106
if (expressionStatements.length <= 1) {
107107
continue;
108108
}
109+
// Skip the first matched assertion; only report subsequent duplicates.
109110
for (const expressionStatement of expressionStatements.slice(1)) {
110111
context.report({
111112
node: expressionStatement,

0 commit comments

Comments
 (0)