diff options
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 28591d631..d540c5f37 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -8768,7 +8768,7 @@ fn lsp_node_modules_dir() { } #[test] -fn lsp_deno_modules_dir() { +fn lsp_vendor_dir() { let context = TestContextBuilder::new() .use_http_server() .use_temp_cwd() @@ -8804,11 +8804,11 @@ fn lsp_deno_modules_dir() { cache(&mut client); - assert!(!temp_dir.path().join("deno_modules").exists()); + assert!(!temp_dir.path().join("vendor").exists()); temp_dir.write( temp_dir.path().join("deno.json"), - "{ \"denoModulesDir\": true, \"lock\": false }\n", + "{ \"vendor\": true, \"lock\": false }\n", ); let refresh_config = |client: &mut LspClient| { client.write_notification( @@ -8852,10 +8852,10 @@ fn lsp_deno_modules_dir() { // no caching necessary because it was already cached. It should exist now assert!(temp_dir .path() - .join("deno_modules/http_localhost_4545/subdir/mod1.ts") + .join("vendor/http_localhost_4545/subdir/mod1.ts") .exists()); - // the declaration should be found in the deno_modules directory + // the declaration should be found in the vendor directory let res = client.write_request( "textDocument/references", json!({ @@ -8869,7 +8869,7 @@ fn lsp_deno_modules_dir() { }), ); - // ensure that it's using the deno_modules directory + // ensure that it's using the vendor directory let references = res.as_array().unwrap(); assert_eq!(references.len(), 2, "references: {:#?}", references); let uri = references[1] @@ -8881,7 +8881,7 @@ fn lsp_deno_modules_dir() { .unwrap(); let file_path = temp_dir .path() - .join("deno_modules/http_localhost_4545/subdir/mod1.ts"); + .join("vendor/http_localhost_4545/subdir/mod1.ts"); let remote_file_uri = file_path.uri_file(); assert_eq!(uri, remote_file_uri.as_str()); |