Skip to content

Commit

Permalink
updated malformed test
Browse files Browse the repository at this point in the history
also, the most trivial of line formatting changes
  • Loading branch information
benmosher committed Sep 17, 2016
1 parent 863de65 commit a1386ee
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/src/rules/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { test, SYNTAX_CASES } from '../utils'

import { RuleTester } from 'eslint'

var ruleTester = new RuleTester({
parser: 'babel-eslint'
})
var ruleTester = new RuleTester({ parser: 'babel-eslint' })
, rule = require('rules/export')

ruleTester.run('export', rule, {
Expand Down Expand Up @@ -73,13 +71,15 @@ ruleTester.run('export', rule, {
// '\'./default-export\'.'
// , type: 'Literal' }] }),

// test({
// code: 'export * from "./malformed.js"',
// errors: [{
// message: "Parse errors in imported module './malformed.js': 'return' outside of function (1:1)",
// type: 'Literal',
// }],
// }),
// note: Espree bump to Acorn 4+ changed this test's error message.
// `npm up` first if it's failing.
test({
code: 'export * from "./malformed.js"',
errors: [{
message: "Parse errors in imported module './malformed.js': Line 1: Unexpected token (1:12)",
type: 'Literal',
}],
}),

test({
code: 'export var { foo, bar } = object; export var foo = "bar"',
Expand Down

0 comments on commit a1386ee

Please sign in to comment.