0
0
Fork 0
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:
David Sherret 2021-07-05 15:21:44 -04:00 committed by GitHub
parent 334cef06e7
commit ce3fbb4bd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 0 deletions

View 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])

View file

@ -0,0 +1 @@
/// <reference path="./types.d.ts" />

View file

@ -0,0 +1 @@
declare class Test {}

View file

@ -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",
});