diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2018-10-09 17:31:06 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-09 20:31:06 -0400 |
commit | 888824c61787edb4a1a0d4141f6c08855d87d2b7 (patch) | |
tree | e571448effd72496d1480bc8ec8e04f010f8e0d2 /tests | |
parent | 94889aef08909171ac5dc7b7c9c72c38d439bd7d (diff) |
Add redirect follow feature (#934)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/017_import_redirect.ts | 5 | ||||
-rw-r--r-- | tests/017_import_redirect.ts.out | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/017_import_redirect.ts b/tests/017_import_redirect.ts new file mode 100644 index 000000000..22003e9dc --- /dev/null +++ b/tests/017_import_redirect.ts @@ -0,0 +1,5 @@ +// http -> https redirect would happen: +// tslint:disable-next-line:max-line-length +import { printHello } from "http://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts"; + +printHello(); diff --git a/tests/017_import_redirect.ts.out b/tests/017_import_redirect.ts.out new file mode 100644 index 000000000..d1ec08c42 --- /dev/null +++ b/tests/017_import_redirect.ts.out @@ -0,0 +1,2 @@ +Downloading http://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts +Hello |