mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
chore: add tests for previous assertion error when file contained only triple slash references (#11285)
This commit is contained in:
parent
334cef06e7
commit
ce3fbb4bd1
4 changed files with 15 additions and 0 deletions
6
cli/tests/info/data_null_error/data_null_error.out
Normal file
6
cli/tests/info/data_null_error/data_null_error.out
Normal file
|
@ -0,0 +1,6 @@
|
|||
local: [WILDCARD]mod.ts
|
||||
type: TypeScript
|
||||
dependencies: 1 unique (total [WILDCARD])
|
||||
|
||||
file://[WILDCARD]/mod.ts ([WILDCARD])
|
||||
└── file://[WILDCARD]/types.d.ts ([WILDCARD])
|
1
cli/tests/info/data_null_error/mod.ts
Normal file
1
cli/tests/info/data_null_error/mod.ts
Normal file
|
@ -0,0 +1 @@
|
|||
/// <reference path="./types.d.ts" />
|
1
cli/tests/info/data_null_error/types.d.ts
vendored
Normal file
1
cli/tests/info/data_null_error/types.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare class Test {}
|
|
@ -111,3 +111,10 @@ itest!(_054_info_local_imports {
|
|||
output: "054_info_local_imports.out",
|
||||
exit_code: 0,
|
||||
});
|
||||
|
||||
// Tests for AssertionError where "data" is unexpectedly null when
|
||||
// a file contains only triple slash references (#11196)
|
||||
itest!(data_null_error {
|
||||
args: "info info/data_null_error/mod.ts",
|
||||
output: "info/data_null_error/data_null_error.out",
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue