Commit 1cf2b0a4 authored by Robert Hodan's avatar Robert Hodan Committed by Juan Corona

Add tests to check if showSidebar and hideSidebar get relayed

parent da77e47c
...@@ -249,4 +249,18 @@ describe('FrameSync', function () { ...@@ -249,4 +249,18 @@ describe('FrameSync', function () {
assert.called(onSidebarOpened); assert.called(onSidebarOpened);
}); });
}); });
describe ('on a relayed bridge call', function() {
it ('calls "showSidebar"', function() {
fakeBridge.emit('showSidebar');
assert.calledWith(fakeBridge.call, 'showSidebar');
});
it ('calls "hideSidebar"', function() {
fakeBridge.emit('hideSidebar');
assert.calledWith(fakeBridge.call, 'hideSidebar');
});
});
}); });
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