Skip to content

Commit d268b5f

Browse files
committed
Add onTargetEvent to test debugger stub.
1 parent a98f2d5 commit d268b5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/debugger-stub.js

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export default class DebbugerStub {
2525
return this.emitter.on('breakpoint', callback)
2626
}
2727

28+
onTargetEvent(callback) {
29+
return this.emitter.on('target', callback)
30+
}
31+
2832
/* For tests */
2933
emitSessionEvent(notification) {
3034
this.emitter.emit('session', notification)

0 commit comments

Comments
 (0)