Skip to content

Commit

Permalink
Fix import-js#564: Fix tests not running due to Espree bump (import-j…
Browse files Browse the repository at this point in the history
…s#565)

* Fix import-js#564: Fix tests not running due to Espree bump

* updated malformed test

also, the most trivial of line formatting changes
  • Loading branch information
jfmengels authored and benmosher committed Sep 17, 2016
1 parent 515d159 commit 12bf6da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/src/rules/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, SYNTAX_CASES } from '../utils'

import { RuleTester } from 'eslint'

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

ruleTester.run('export', rule, {
Expand Down Expand Up @@ -71,10 +71,12 @@ ruleTester.run('export', rule, {
// '\'./default-export\'.'
// , 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': 'return' outside of function (1:1)",
message: "Parse errors in imported module './malformed.js': Line 1: Unexpected token (1:12)",
type: 'Literal',
}],
}),
Expand Down

0 comments on commit 12bf6da

Please sign in to comment.