Skip to content

Commit d629bd6

Browse files
author
Kanchalai Tanglertsampan
committed
Add tests and baselines
1 parent afea110 commit d629bd6

16 files changed

+106
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//// [alwaysStrictModule3.ts]
2+
3+
// module ES2015
4+
export const a = 1;
5+
6+
//// [alwaysStrictModule3.js]
7+
// module ES2015
8+
export var a = 1;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=== tests/cases/compiler/alwaysStrictModule3.ts ===
2+
3+
// module ES2015
4+
export const a = 1;
5+
>a : Symbol(a, Decl(alwaysStrictModule3.ts, 2, 12))
6+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/compiler/alwaysStrictModule3.ts ===
2+
3+
// module ES2015
4+
export const a = 1;
5+
>a : 1
6+
>1 : 1
7+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//// [alwaysStrictModule4.ts]
2+
3+
// Module commonjs
4+
export const a = 1
5+
6+
//// [alwaysStrictModule4.js]
7+
"use strict";
8+
// Module commonjs
9+
exports.a = 1;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=== tests/cases/compiler/alwaysStrictModule4.ts ===
2+
3+
// Module commonjs
4+
export const a = 1
5+
>a : Symbol(a, Decl(alwaysStrictModule4.ts, 2, 12))
6+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/compiler/alwaysStrictModule4.ts ===
2+
3+
// Module commonjs
4+
export const a = 1
5+
>a : 1
6+
>1 : 1
7+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//// [alwaysStrictModule5.ts]
2+
3+
// Targeting ES6
4+
export const a = 1;
5+
6+
//// [alwaysStrictModule5.js]
7+
// Targeting ES6
8+
export const a = 1;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=== tests/cases/compiler/alwaysStrictModule5.ts ===
2+
3+
// Targeting ES6
4+
export const a = 1;
5+
>a : Symbol(a, Decl(alwaysStrictModule5.ts, 2, 12))
6+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=== tests/cases/compiler/alwaysStrictModule5.ts ===
2+
3+
// Targeting ES6
4+
export const a = 1;
5+
>a : 1
6+
>1 : 1
7+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//// [alwaysStrictModule6.ts]
2+
3+
// Targeting ES5
4+
export const a = 1;
5+
6+
//// [alwaysStrictModule6.js]
7+
"use strict";
8+
// Targeting ES5
9+
exports.a = 1;

0 commit comments

Comments
 (0)