mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 05:34:49 +00:00
parent
a2f126068e
commit
e01664d0ae
5 changed files with 43 additions and 6 deletions
|
@ -2859,6 +2859,12 @@ itest!(proto_exploit {
|
|||
output: "proto_exploit.js.out",
|
||||
});
|
||||
|
||||
itest!(redirect_cache {
|
||||
http_server: true,
|
||||
args: "cache --reload http://localhost:4548/cli/tests/subdir/redirects/a.ts",
|
||||
output: "redirect_cache.out",
|
||||
});
|
||||
|
||||
itest!(deno_test_coverage {
|
||||
args: "test --coverage --unstable test_coverage.ts",
|
||||
output: "test_coverage.out",
|
||||
|
|
6
cli/tests/redirect_cache.out
Normal file
6
cli/tests/redirect_cache.out
Normal file
|
@ -0,0 +1,6 @@
|
|||
Download http://localhost:4548/cli/tests/subdir/redirects/a.ts
|
||||
Download http://localhost:4546/cli/tests/subdir/redirects/a.ts
|
||||
Download http://localhost:4545/cli/tests/subdir/redirects/a.ts
|
||||
Download http://localhost:4545/cli/tests/subdir/redirects/b.ts
|
||||
Download http://localhost:4545/cli/tests/subdir/redirects/a.ts
|
||||
Check http://localhost:4548/cli/tests/subdir/redirects/a.ts
|
9
cli/tests/subdir/redirects/a.ts
Normal file
9
cli/tests/subdir/redirects/a.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { createA } from "./b.ts";
|
||||
|
||||
export class A {
|
||||
private _a = "a";
|
||||
}
|
||||
|
||||
export function start(): A {
|
||||
return createA();
|
||||
}
|
5
cli/tests/subdir/redirects/b.ts
Normal file
5
cli/tests/subdir/redirects/b.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { A } from "./a.ts";
|
||||
|
||||
export function createA(): A {
|
||||
return new A();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue