mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix OffAll test
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
5436ebee71
commit
b74b9efa8e
1 changed files with 4 additions and 0 deletions
|
|
@ -144,6 +144,10 @@ describe("OffAll", () => {
|
|||
On('b', cbb);
|
||||
On('c', cbc);
|
||||
On('c', cbc);
|
||||
OffAll();
|
||||
dispatchWailsEvent({ name: 'a' });
|
||||
dispatchWailsEvent({ name: 'b' });
|
||||
dispatchWailsEvent({ name: 'c' });
|
||||
expect(cba).not.toHaveBeenCalled();
|
||||
expect(cbb).not.toHaveBeenCalled();
|
||||
expect(cbc).not.toHaveBeenCalled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue