More variants of import added (#1738)

- `import * from "x.js"`
- `import * as Name from "x.js"`
This commit is contained in:
Ondřej Španěl
2017-03-31 11:52:56 +02:00
committed by Alex Lam S.L
parent a729c43e87
commit 2f93058c6e
3 changed files with 51 additions and 40 deletions

View File

@@ -184,7 +184,15 @@ import_statement: {
import Bar, { Foo } from 'lel';
import { Bar as kex, Baz as food } from 'lel';
}
expect_exact: "import\"mod-name\";import Foo from\"bar\";import{Bar,Baz}from\"lel\";import Bar,{Foo}from\"lel\";import{Bar as kex,Baz as food}from\"lel\";"
expect_exact: 'import"mod-name";import Foo from"bar";import{Bar,Baz}from"lel";import Bar,{Foo}from"lel";import{Bar as kex,Baz as food}from"lel";'
}
import_all_statement: {
input: {
import * from 'lel';
import * as Lel from 'lel';
}
expect_exact: 'import*from"lel";import*as Lel from"lel";'
}
export_statement: {