Commit d7a7f095 authored by Robert Knight's avatar Robert Knight

Add test for `FrameSyncService.notifyHost`

parent 564e8cfe
......@@ -545,4 +545,12 @@ describe('FrameSyncService', () => {
assert.calledWith(guestBridge().call, 'scrollToAnnotation', 'atag');
});
});
describe('#notifyHost', () => {
it('sends a message to the host frame', () => {
frameSync.connect();
frameSync.notifyHost('openNotebook', 'group-id');
assert.calledWith(hostBridge().call, 'openNotebook', 'group-id');
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment