summaryrefslogtreecommitdiff
path: root/src/js_errors.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-01 00:19:55 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-01-03 05:41:51 -0500
commit5b9c4889215a5c8e5a3681af0b3586ff4e0a15fe (patch)
treeb3c34fbf8ee6216915c13f6486868afa54c02c3c /src/js_errors.rs
parent76de81358e0f3ea0c1f2e4c2bf3eb9871f9f9f99 (diff)
Fix test js_error_apply_source_map_2
If the project is checked out into a directory not called "deno" this test fails.
Diffstat (limited to 'src/js_errors.rs')
-rw-r--r--src/js_errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_errors.rs b/src/js_errors.rs
index 167877335..59e388162 100644
--- a/src/js_errors.rs
+++ b/src/js_errors.rs
@@ -518,7 +518,7 @@ mod tests {
assert_eq!(actual.frames.len(), 1);
assert_eq!(actual.frames[0].line, 15);
assert_eq!(actual.frames[0].column, 16);
- assert_eq!(actual.frames[0].script_name, "deno/js/util.ts");
+ assert!(actual.frames[0].script_name.ends_with("js/util.ts"));
}
#[test]