Skip to content

Commit

Permalink
Added test for mixed flow imports
Browse files Browse the repository at this point in the history
  • Loading branch information
syymza committed May 18, 2018
1 parent 96500b8 commit 1d9ae51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/rules/named.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ ruleTester.run('named', rule, {
}],
}),

test({
code: 'import { type MyOpaqueType, MyMissingClass } from "./flowtypes"',
parser: 'babel-eslint',
errors: ["MyMissingClass not found in './flowtypes'"],
}),

// jsnext
test({
code: '/*jsnext*/ import { createSnorlax } from "redux"',
Expand Down

0 comments on commit 1d9ae51

Please sign in to comment.