summaryrefslogtreecommitdiff
path: root/cli/tests/integration/inspector_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/inspector_tests.rs')
-rw-r--r--cli/tests/integration/inspector_tests.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/cli/tests/integration/inspector_tests.rs b/cli/tests/integration/inspector_tests.rs
index 41c126cdb..95310667b 100644
--- a/cli/tests/integration/inspector_tests.rs
+++ b/cli/tests/integration/inspector_tests.rs
@@ -1366,12 +1366,11 @@ async fn inspector_error_with_npm_import() {
.send(json!({"id":4,"method":"Debugger.resume"}))
.await;
tester
- .assert_received_messages(&[r#"{"id":4,"result":{}}"#], &[])
+ .assert_received_messages(
+ &[r#"{"id":4,"result":{}}"#],
+ &[r#"{"method":"Runtime.exceptionThrown","#],
+ )
.await;
-
- // TODO(bartlomieju): this is a partial fix, we should assert that
- // "Runtime.exceptionThrown" notification was sent, but a bindings for this
- // notification is not yet there
assert_eq!(&tester.stderr_line(), "Debugger session started.");
assert_eq!(&tester.stderr_line(), "error: Uncaught Error: boom!");