diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-18 11:43:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 11:43:02 +0100 |
commit | a44a5de43013becb91e4725e508051e62f628467 (patch) | |
tree | f12a4135816cea35f4853ff2730a0df2275091e5 /cli/tests/integration/inspector_tests.rs | |
parent | 9ede8d7b69c1d2859bb03e5bdffd7407042914ec (diff) |
refactor: factor out cdp::ExceptionThrown notification (#21623)
Just removing some duplicated code.
Diffstat (limited to 'cli/tests/integration/inspector_tests.rs')
-rw-r--r-- | cli/tests/integration/inspector_tests.rs | 9 |
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!"); |