summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorJason <m.jason.liu@outlook.com>2022-04-03 12:17:30 +0800
committerGitHub <noreply@github.com>2022-04-03 14:17:30 +1000
commita6e4b4297d840e9cfe4bdf373f24da8202f58e2d (patch)
tree9de6209eaa5affc810bc5bd9d7cc65384d55a9f3 /cli/tests
parent6c25b5135dfa6d9be35f6993e4b43d442977eff9 (diff)
refactor(lsp): migrate from lspower back to tower-lsp (#14163)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/lsp_tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs
index fecfdb001..6e50e2f68 100644
--- a/cli/tests/integration/lsp_tests.rs
+++ b/cli/tests/integration/lsp_tests.rs
@@ -8,7 +8,6 @@ use deno_core::serde_json;
use deno_core::serde_json::json;
use deno_core::serde_json::Value;
use deno_core::url::Url;
-use lspower::lsp;
use pretty_assertions::assert_eq;
use std::collections::HashSet;
use std::fs;
@@ -17,6 +16,7 @@ use test_util::http_server;
use test_util::lsp::LspClient;
use test_util::testdata_path;
use test_util::TempDir;
+use tower_lsp::lsp_types as lsp;
fn load_fixture(path: &str) -> Value {
load_fixture_as(path)
@@ -605,7 +605,7 @@ fn lsp_deno_task() {
.unwrap();
let (maybe_res, maybe_err) = client
- .write_request::<_, _, Value>("deno/task", json!({}))
+ .write_request::<_, _, Value>("deno/task", json!(null))
.unwrap();
assert!(maybe_err.is_none());
@@ -4280,7 +4280,7 @@ fn lsp_performance() {
assert!(maybe_err.is_none());
assert!(maybe_res.is_some());
let (maybe_res, maybe_err) = client
- .write_request::<_, _, PerformanceAverages>("deno/performance", json!({}))
+ .write_request::<_, _, PerformanceAverages>("deno/performance", json!(null))
.unwrap();
assert!(maybe_err.is_none());
if let Some(res) = maybe_res {