Commit 9b689dac authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Add event on toast messenger to announce for dismissed messages

parent 4ac6fca3
......@@ -1164,4 +1164,14 @@ describe('FrameSyncService', () => {
assert.calledWith(hostRPC().call, 'toastMessageDismissed', messageId);
});
});
context('when a toast message is dismissed', () => {
it('forwards the message ID to the host', () => {
const messageId = 'someId';
fakeToastMessenger.emit('toastMessageDismissed', messageId);
assert.calledWith(hostRPC().call, 'toastMessageDismissed', messageId);
});
});
});
......@@ -235,7 +235,6 @@ export type SidebarToHostEvent =
/**
* The sidebar is asking the host to toast a message
*/
| 'toastMessageAdded'
/**
* The sidebar is asking the host to dismiss a toast message
......
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