1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-10 16:11:13 -05:00

fix(cli/test): don't use reserved symbol : in specifier (#10751)

This commit is contained in:
Casper Beyer 2021-05-24 23:26:04 +08:00 committed by GitHub
parent 428bc6849f
commit 6044b037fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

View file

@ -18,8 +18,6 @@ use tempfile::TempDir;
use test_util as util;
use tokio::task::LocalSet;
// TODO(caspervonb): investiate why this fails on Windows.
#[cfg(unix)]
#[test]
fn typecheck_declarations_ns() {
let status = util::deno_cmd()
@ -33,8 +31,6 @@ fn typecheck_declarations_ns() {
assert!(status.success());
}
// TODO(caspervonb): investiate why this fails on Windows.
#[cfg(unix)]
#[test]
fn typecheck_declarations_unstable() {
let status = util::deno_cmd()

View file

@ -1,5 +1,5 @@
Check [WILDCARD]/doc.ts:2-7
Check [WILDCARD]/doc.ts$2-7
error: TS2367 [ERROR]: This condition will always return 'false' since the types 'string' and 'number' have no overlap.
console.assert(example() == 42);
~~~~~~~~~~~~~~~
at [WILDCARD]/doc.ts:2-7.ts:3:16
at [WILDCARD]/doc.ts$2-7.ts:3:16

View file

@ -379,7 +379,7 @@ pub async fn run_tests(
let location = parsed_module.get_location(&span);
let specifier = deno_core::resolve_url_or_path(&format!(
"{}:{}-{}",
"{}${}-{}",
location.filename,
location.line,
location.line + element.as_str().split('\n').count(),