Skip to content

Commit

Permalink
Add ts side tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo committed Sep 29, 2018
1 parent adf5996 commit ebd46d2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/015_import_no_ext.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/015_import_no_ext.ts...
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod3.ts...
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.ts...
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.js...
Trying http://localhost:4545/tests/subdir/mod2.ts...
Downloading http://localhost:4545/tests/subdir/mod2.ts
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/print_hello.ts...
Downloading http://localhost:4545/tests/subdir/print_hello.ts
true
[Function: printHello]
[Function: printHello]
true
[Function: printHello]
10 changes: 10 additions & 0 deletions tests/015_import_no_ext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { isTSFile, printHello, phNoExt } from "./subdir/mod3";
console.log(isTSFile);
console.log(printHello);
console.log(phNoExt);

import { isMod4 } from "./subdir/mod4";
console.log(isMod4);

import { printHello as ph } from "http://localhost:4545/tests/subdir/mod2";
console.log(ph);
1 change: 1 addition & 0 deletions tests/subdir/mod3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const isTSFile = false;
3 changes: 3 additions & 0 deletions tests/subdir/mod3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const isTSFile = true;
export { printHello } from "./print_hello.ts";
export { printHello as phNoExt } from "./print_hello";
1 change: 1 addition & 0 deletions tests/subdir/mod4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const isMod4 = true;

0 comments on commit ebd46d2

Please sign in to comment.