summaryrefslogtreecommitdiff
path: root/cli/source_maps.rs
diff options
context:
space:
mode:
authorLuka Hartwig <mail@lukahartwig.de>2020-02-02 22:55:22 +0100
committerGitHub <noreply@github.com>2020-02-02 16:55:22 -0500
commitf168597b7ab81afda3bf4749a81c360d364e7cf1 (patch)
tree4082e9eebf03cc7b3b653822c52a54a62e308d15 /cli/source_maps.rs
parente8df66c12cbb3e51f8776aa91e6db41bbfdcae5e (diff)
Remove //tests symlink (#3849)
Diffstat (limited to 'cli/source_maps.rs')
-rw-r--r--cli/source_maps.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/source_maps.rs b/cli/source_maps.rs
index e326c644e..6b177cc69 100644
--- a/cli/source_maps.rs
+++ b/cli/source_maps.rs
@@ -436,12 +436,12 @@ mod tests {
#[test]
fn source_map_from_json() {
- let json = r#"{"version":3,"file":"error_001.js","sourceRoot":"","sources":["file:///Users/rld/src/deno/tests/error_001.ts"],"names":[],"mappings":"AAAA,SAAS,GAAG;IACV,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,GAAG;IACV,GAAG,EAAE,CAAC;AACR,CAAC;AAED,GAAG,EAAE,CAAC"}"#;
+ let json = r#"{"version":3,"file":"error_001.js","sourceRoot":"","sources":["file:///Users/rld/src/deno/cli/tests/error_001.ts"],"names":[],"mappings":"AAAA,SAAS,GAAG;IACV,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,GAAG;IACV,GAAG,EAAE,CAAC;AACR,CAAC;AAED,GAAG,EAAE,CAAC"}"#;
let sm = SourceMap::from_json(json).unwrap();
assert_eq!(sm.sources.len(), 1);
assert_eq!(
sm.sources[0],
- "file:///Users/rld/src/deno/tests/error_001.ts"
+ "file:///Users/rld/src/deno/cli/tests/error_001.ts"
);
let mapping = sm
.mappings