Skip to content

Commit

Permalink
Added assert for use strict rule
Browse files Browse the repository at this point in the history
False positives could be missed by the test
  • Loading branch information
DickvdBrink committed Aug 20, 2014
1 parent 00cb772 commit 2035b56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/rules/useStrictRuleTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe("<use-strict>", () => {
before(() => {
var options = [true, "check-function", "check-module"];
actualFailures = Lint.Test.applyRuleOnFile(fileName, UseStrictRule, options);
assert.lengthOf(actualFailures, 2);
});

it("enforces checks for 'use strict' in functions", () => {
Expand Down

0 comments on commit 2035b56

Please sign in to comment.