diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-10 11:09:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-10 11:09:45 -0400 |
| commit | 7f15126f23d97f20a4fb33e43136cd4d13825863 (patch) | |
| tree | 85d77389969b31999680059e65954a9fa863758e /cli/tests/integration/lsp_tests.rs | |
| parent | f3326eebd6af2aaca1543e8cb543a7b16762bc96 (diff) | |
chore(tests): test_util - Add `PathRef` (#19450)
This adds a new `PathRef` struct to test_util for making it easier to
work with paths in test code. I'm going to expand on this more in the
future.
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
| -rw-r--r-- | cli/tests/integration/lsp_tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index fa8cb6a3c..bd5bc409a 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -7670,7 +7670,7 @@ fn lsp_node_modules_dir() { .as_str() .unwrap(); // canonicalize for mac - let path = temp_dir.path().join("node_modules").canonicalize().unwrap(); + let path = temp_dir.path().join("node_modules").canonicalize(); assert_starts_with!( uri, ModuleSpecifier::from_file_path(&path).unwrap().as_str() |
