Skip to content

Commit

Permalink
Add testcase for #4101
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Aug 10, 2015
1 parent 9dc15b4 commit 42d8328
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/baselines/reference/exportClauseEmit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//// [exportClauseEmit.ts]
var str = "Hello";
// Change str
str = "Hello World!!!";
export {str};

//// [exportClauseEmit.js]
var str = "Hello";
exports.str = str;
// Change str
str = "Hello World!!!";


//// [exportClauseEmit.d.ts]
declare var str: string;
export { str };
11 changes: 11 additions & 0 deletions tests/baselines/reference/exportClauseEmit.symbols
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
=== tests/cases/compiler/exportClauseEmit.ts ===
var str = "Hello";
>str : Symbol(str, Decl(exportClauseEmit.ts, 0, 3))

// Change str
str = "Hello World!!!";
>str : Symbol(str, Decl(exportClauseEmit.ts, 0, 3))

export {str};
>str : Symbol(str, Decl(exportClauseEmit.ts, 3, 8))

14 changes: 14 additions & 0 deletions tests/baselines/reference/exportClauseEmit.types
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
=== tests/cases/compiler/exportClauseEmit.ts ===
var str = "Hello";
>str : string
>"Hello" : string

// Change str
str = "Hello World!!!";
>str = "Hello World!!!" : string
>str : string
>"Hello World!!!" : string

export {str};
>str : string

6 changes: 6 additions & 0 deletions tests/cases/compiler/exportClauseEmit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//@module: commonjs
//@declaration: true
var str = "Hello";
// Change str
str = "Hello World!!!";
export {str};

0 comments on commit 42d8328

Please sign in to comment.