Skip to content

Commit 12bf6da

Browse files
jfmengelsbenmosher
authored andcommitted
Fix #564: Fix tests not running due to Espree bump (#565)
* Fix #564: Fix tests not running due to Espree bump * updated malformed test also, the most trivial of line formatting changes
1 parent 515d159 commit 12bf6da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/src/rules/export.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, SYNTAX_CASES } from '../utils'
22

33
import { RuleTester } from 'eslint'
44

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

88
ruleTester.run('export', rule, {
@@ -71,10 +71,12 @@ ruleTester.run('export', rule, {
7171
// '\'./default-export\'.'
7272
// , type: 'Literal' }] }),
7373

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

0 commit comments

Comments
 (0)