mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 02:51:56 +08: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
@ -144,6 +144,10 @@ describe("OffAll", () => {
|
|||||||
On('b', cbb);
|
On('b', cbb);
|
||||||
On('c', cbc);
|
On('c', cbc);
|
||||||
On('c', cbc);
|
On('c', cbc);
|
||||||
|
OffAll();
|
||||||
|
dispatchWailsEvent({ name: 'a' });
|
||||||
|
dispatchWailsEvent({ name: 'b' });
|
||||||
|
dispatchWailsEvent({ name: 'c' });
|
||||||
expect(cba).not.toHaveBeenCalled();
|
expect(cba).not.toHaveBeenCalled();
|
||||||
expect(cbb).not.toHaveBeenCalled();
|
expect(cbb).not.toHaveBeenCalled();
|
||||||
expect(cbc).not.toHaveBeenCalled();
|
expect(cbc).not.toHaveBeenCalled();
|
||||||
|
Loading…
Reference in New Issue
Block a user