Skip to content

Commit 0c3dea7

Browse files
committed
maint(core utils debounce tests): await for number of debounce calls to correctly test the debounce method.
1 parent ca16b1d commit 0c3dea7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/utils.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@ describe("debounce ...", function () {
625625
debouncer();
626626
expect(test_func).not.toHaveBeenCalled();
627627
await utils.timeout(1);
628+
await utils.timeout(1);
629+
await utils.timeout(1);
630+
await utils.timeout(1);
628631
expect(test_func).toHaveBeenCalledTimes(1);
629632
});
630633
it("incorrect usage by multi instantiation won't cancel previous runs", async () => {

0 commit comments

Comments
 (0)