mirror of
https://github.com/denoland/deno.git
synced 2025-07-30 08:34:35 +00:00
Replace globals.d.ts with lib.deno_runtime.d.ts
This commit is contained in:
parent
fda7aaa10e
commit
ec402c6932
23 changed files with 1183 additions and 100 deletions
|
@ -546,7 +546,10 @@ test(function compilerGetCurrentDirectory() {
|
|||
|
||||
test(function compilerGetDefaultLibFileName() {
|
||||
setup();
|
||||
assertEqual(compilerInstance.getDefaultLibFileName(), "$asset$/globals.d.ts");
|
||||
assertEqual(
|
||||
compilerInstance.getDefaultLibFileName(),
|
||||
"$asset$/lib.deno_runtime.d.ts"
|
||||
);
|
||||
teardown();
|
||||
});
|
||||
|
||||
|
@ -572,7 +575,7 @@ test(function compilerFileExists() {
|
|||
"/root/project"
|
||||
);
|
||||
assert(compilerInstance.fileExists(moduleMetaData.fileName));
|
||||
assert(compilerInstance.fileExists("$asset$/globals.d.ts"));
|
||||
assert(compilerInstance.fileExists("$asset$/lib.deno_runtime.d.ts"));
|
||||
assertEqual(
|
||||
compilerInstance.fileExists("/root/project/unknown-module.ts"),
|
||||
false
|
||||
|
@ -590,7 +593,7 @@ test(function compilerResolveModuleNames() {
|
|||
const fixtures: Array<[string, boolean]> = [
|
||||
["/root/project/foo/bar.ts", false],
|
||||
["/root/project/foo/baz.ts", false],
|
||||
["$asset$/globals.d.ts", true]
|
||||
["$asset$/lib.deno_runtime.d.ts", true]
|
||||
];
|
||||
for (let i = 0; i < results.length; i++) {
|
||||
const result = results[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue