Add initial tests

This commit is contained in:
Kanchalai Tanglertsampan
2017-03-13 17:07:13 -07:00
parent ddf5ed944b
commit 26f9a52e92
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// @module: es2018
// @target: esnext
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
import("./0");
var p1 = import("./0");
p1.then(zero => {
return zero.foo();
})

View File

@@ -0,0 +1,10 @@
// @module: es2018
// @lib: es2015
// @filename: 0.ts
export function foo(){}
// @filename: 1.ts
import * as Zero from "./0" // Should preserve ES2015 module syntax
import("./0");
var p1 = import("./0");
export default p1;