Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Add a test for use strict and directive ast change
Browse files Browse the repository at this point in the history
Fixes #242
  • Loading branch information
hzoo committed Jan 30, 2016
1 parent 937eceb commit ac4d3f0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/non-regression.js
Expand Up @@ -138,8 +138,7 @@ describe("verify", function () {
);
});

// fix after updating to ESLint 1.0.0
it.skip("Arrow function with non-block bodies (issue #20)", function () {
it("Arrow function with non-block bodies (issue #20)", function () {
verifyAndAssertMessages(
"\"use strict\"; () => 1",
{ "strict": [1, "global"] },
Expand All @@ -148,6 +147,15 @@ describe("verify", function () {
);
});

it("#242", function () {
verifyAndAssertMessages(
"\"use strict\"; asdf;",
{ "no-irregular-whitespace": 1 },
[],
{}
);
});

it("await keyword (issue #22)", function () {
verifyAndAssertMessages(
"async function foo() { await bar(); }",
Expand Down

0 comments on commit ac4d3f0

Please sign in to comment.