diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2021-10-11 08:26:22 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 08:26:22 +1100 |
| commit | a7baf5f2bbb50dc0cb571de141b800b9155faca7 (patch) | |
| tree | 4bebaabd1d3ed4595e8a388e0fae559bb5558974 /cli/tests/integration | |
| parent | 5a8a989b7815023f33a1e3183a55cc8999af5d98 (diff) | |
refactor: integrate deno_graph into CLI (#12369)
Diffstat (limited to 'cli/tests/integration')
| -rw-r--r-- | cli/tests/integration/lsp_tests.rs | 1 | ||||
| -rw-r--r-- | cli/tests/integration/watcher_tests.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 0b06beed4..215ba1a24 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -2761,7 +2761,6 @@ fn lsp_diagnostics_warn() { .unwrap(); assert!(maybe_err.is_none()); assert!(maybe_res.is_some()); - let (method, _) = client.read_notification::<Value>().unwrap(); assert_eq!(method, "textDocument/publishDiagnostics"); let (method, _) = client.read_notification::<Value>().unwrap(); diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs index 6148bcf2b..feda1bac7 100644 --- a/cli/tests/integration/watcher_tests.rs +++ b/cli/tests/integration/watcher_tests.rs @@ -206,6 +206,7 @@ fn bundle_js_watch() { let (_stdout_lines, mut stderr_lines) = child_lines(&mut deno); std::thread::sleep(std::time::Duration::from_secs(1)); + assert_contains!(stderr_lines.next().unwrap(), "Check"); assert_contains!(stderr_lines.next().unwrap(), "file_to_watch.js"); assert_contains!(stderr_lines.next().unwrap(), "mod6.bundle.js"); let file = PathBuf::from(&bundle); @@ -214,6 +215,7 @@ fn bundle_js_watch() { write(&file_to_watch, "console.log('Hello world2');").unwrap(); std::thread::sleep(std::time::Duration::from_secs(1)); + assert_contains!(stderr_lines.next().unwrap(), "Check"); assert_contains!(stderr_lines.next().unwrap(), "File change detected!"); assert_contains!(stderr_lines.next().unwrap(), "file_to_watch.js"); assert_contains!(stderr_lines.next().unwrap(), "mod6.bundle.js"); @@ -261,6 +263,7 @@ fn bundle_watch_not_exit() { // Make sure the watcher actually restarts and works fine with the proper syntax write(&file_to_watch, "console.log(42);").unwrap(); std::thread::sleep(std::time::Duration::from_secs(1)); + assert_contains!(stderr_lines.next().unwrap(), "Check"); assert_contains!(stderr_lines.next().unwrap(), "File change detected!"); assert_contains!(stderr_lines.next().unwrap(), "file_to_watch.js"); assert_contains!(stderr_lines.next().unwrap(), "target.js"); |
