From e077b93d77d42f805ceb7a58cdc3c42255c0a30b Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 1 Oct 2020 20:33:15 +1000 Subject: refactor: add concept of 'legacy' compiler to enable non-breaking refactoring (#7762) --- cli/tests/integration_tests.rs | 2 +- cli/tests/type_directives_01.ts.out | 2 +- cli/tests/type_directives_02.ts.out | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 106312247..2cae5ea98 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -793,7 +793,7 @@ fn ts_reload() { assert!(std::str::from_utf8(&output.stdout) .unwrap() .trim() - .contains("\"compiler::host.writeFile\" \"deno://002_hello.js\"")); + .contains("\"host.writeFile(\\\"deno://002_hello.js\\\")\"")); } #[test] diff --git a/cli/tests/type_directives_01.ts.out b/cli/tests/type_directives_01.ts.out index 8bd20087b..8d285d3a8 100644 --- a/cli/tests/type_directives_01.ts.out +++ b/cli/tests/type_directives_01.ts.out @@ -1,3 +1,3 @@ [WILDCARD] -DEBUG TS - "compiler::host.getSourceFile" "http://127.0.0.1:4545/xTypeScriptTypes.d.ts" +DEBUG TS - "host.getSourceFile(\"http://127.0.0.1:4545/xTypeScriptTypes.d.ts\", Latest)" [WILDCARD] \ No newline at end of file diff --git a/cli/tests/type_directives_02.ts.out b/cli/tests/type_directives_02.ts.out index 5cfdeefc2..aea1d4fd0 100644 --- a/cli/tests/type_directives_02.ts.out +++ b/cli/tests/type_directives_02.ts.out @@ -1,3 +1,3 @@ [WILDCARD] -DEBUG TS - "compiler::host.getSourceFile" "file:[WILDCARD]cli/tests/subdir/type_reference.d.ts" +DEBUG TS - "host.getSourceFile(\"file:///[WILDCARD]cli/tests/subdir/type_reference.d.ts\", Latest)" [WILDCARD] \ No newline at end of file -- cgit v1.2.3