From a44a5de43013becb91e4725e508051e62f628467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 18 Dec 2023 11:43:02 +0100 Subject: refactor: factor out cdp::ExceptionThrown notification (#21623) Just removing some duplicated code. --- cli/tests/integration/inspector_tests.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cli/tests/integration/inspector_tests.rs') 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!"); -- cgit v1.2.3