Skip to content
Permalink
Browse files

Update: Add module tests to no-extra-semi (fixes #4915)

  • Loading branch information...
nzakas committed Jan 11, 2016
1 parent 1ebf887 commit c2dee2765814a8d83c40fdab4b7512f3c49d5aec
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/lib/rules/no-extra-semi.js
@@ -32,7 +32,11 @@ ruleTester.run("no-extra-semi", rule, {
{code: "var A = class { };", parserOptions: { ecmaVersion: 6 }},
{code: "class A { a() { this; } }", parserOptions: { ecmaVersion: 6 }},
{code: "var A = class { a() { this; } };", parserOptions: { ecmaVersion: 6 }},
{code: "class A { } a;", parserOptions: { ecmaVersion: 6 }}
{code: "class A { } a;", parserOptions: { ecmaVersion: 6 }},

// modules
{code: "export const x = 42;", parserOptions: { sourceType: "module" }},
{code: "export default 42;", parserOptions: { sourceType: "module" }}
],
invalid: [
{

0 comments on commit c2dee27

Please sign in to comment.
You can’t perform that action at this time.