Added tests.

This commit is contained in:
Daniel Rosenwasser
2015-07-15 17:38:51 -07:00
parent c17934ed3d
commit e2c16962f3
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// @module: commonjs
// @target: ES5
// @filename: m1.ts
export default function Decl() {
return 0;
}
export interface Decl {
p1: number;
p2: number;
}
export namespace Decl {
export var x = 10;
export var y = 20;
interface I {
}
}
// @filename: m2.ts
import Entity from "m1"
Entity();
var x: Entity;
var y: Entity.I;
Entity.x;
Entity.y;

View File

@@ -0,0 +1,19 @@
// @module: commonjs
// @target: ES5
// @filename: m1.ts
export default class foo {
}
export default function bar() {
}
var x = 10;
export default x;
// @filename: m2.ts
import Entity from "m1"
Entity();

View File

@@ -0,0 +1,16 @@
// @module: commonjs
// @target: ES5
// @filename: m1.ts
export default function foo() {
}
export default function bar() {
}
// @filename: m2.ts
import Entity from "m1"
Entity();