From 5b9c4889215a5c8e5a3681af0b3586ff4e0a15fe Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 1 Jan 2019 00:19:55 -0500 Subject: Fix test js_error_apply_source_map_2 If the project is checked out into a directory not called "deno" this test fails. --- src/js_errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js_errors.rs') 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] -- cgit v1.2.3