Skip to content

Commit eaa2195

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

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

tests/015_import_no_ext.out

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
Downloading http://localhost:4545/tests/subdir/print_hello.ts
8+
true
9+
true
10+
true
11+
true

tests/015_import_no_ext.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { isTSFile, printHello } from "./subdir/mod3";
2+
console.log(isTSFile);
3+
console.log(!!printHello);
4+
5+
import { isMod4 } from "./subdir/mod4";
6+
console.log(isMod4);
7+
8+
import { printHello as ph } from "http://localhost:4545/tests/subdir/mod2";
9+
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const isTSFile = true;
2+
export { printHello } from "./print_hello.ts";

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)