Skip to content

Commit 6a19dc1

Browse files
committed
fix test
1 parent 5c4e204 commit 6a19dc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/preferWhileRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as ts from 'typescript';
22
import * as Lint from 'tslint';
33

4-
const FAIL_MESSAGE = `use while loop instead`;
4+
const FAIL_MESSAGE = 'Prefer `while` loops instead of `for` loops without an initializer and incrementor.';
55

66
export class Rule extends Lint.Rules.AbstractRule {
77
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {

test/rules/prefer-while/default/test.ts.lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ for (i = 1; --i;);
1616

1717
for (i = 1; i, --i);
1818

19-
[fail]: use while loop instead
19+
[fail]: Prefer `while` loops instead of `for` loops without an initializer and incrementor.

0 commit comments

Comments
 (0)