5
0
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:
Fabio Massaioli 2025-02-25 17:15:45 +01:00 committed by GitHub
parent 5436ebee71
commit b74b9efa8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();