Skip to content

Commit ebd46d2

Browse files
committed
Add ts side tests
1 parent adf5996 commit ebd46d2

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

tests/015_import_no_ext.out

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/015_import_no_ext.ts...
2+
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod3.ts...
3+
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.ts...
4+
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.js...
5+
Trying http://localhost:4545/tests/subdir/mod2.ts...
6+
Downloading http://localhost:4545/tests/subdir/mod2.ts
7+
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/print_hello.ts...
8+
Downloading http://localhost:4545/tests/subdir/print_hello.ts
9+
true
10+
[Function: printHello]
11+
[Function: printHello]
12+
true
13+
[Function: printHello]

tests/015_import_no_ext.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { isTSFile, printHello, phNoExt } from "./subdir/mod3";
2+
console.log(isTSFile);
3+
console.log(printHello);
4+
console.log(phNoExt);
5+
6+
import { isMod4 } from "./subdir/mod4";
7+
console.log(isMod4);
8+
9+
import { printHello as ph } from "http://localhost:4545/tests/subdir/mod2";
10+
console.log(ph);

tests/subdir/mod3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const isTSFile = false;

tests/subdir/mod3.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const isTSFile = true;
2+
export { printHello } from "./print_hello.ts";
3+
export { printHello as phNoExt } from "./print_hello";

tests/subdir/mod4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const isMod4 = true;

0 commit comments

Comments
 (0)