From 04bddf1e4bb8cf6e552d644acf9d950ac0675720 Mon Sep 17 00:00:00 2001 From: zak Date: Tue, 26 Sep 2023 11:22:53 +0100 Subject: [PATCH] Use spy assertions not counters --- src/Model.discontinuity.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model.discontinuity.test.ts b/src/Model.discontinuity.test.ts index 5fe0628d..b6c7e8ae 100644 --- a/src/Model.discontinuity.test.ts +++ b/src/Model.discontinuity.test.ts @@ -76,7 +76,6 @@ describe('Model', () => { await subscriptionCalls[0]; expect(subscriptionSpy).toHaveBeenNthCalledWith(1, null, '0'); - expect(counter).toEqual(1); await modelStatePromise(model, 'ready'); suspendChannel(); @@ -84,6 +83,6 @@ describe('Model', () => { await subscriptionCalls[1]; expect(subscriptionSpy).toHaveBeenNthCalledWith(2, null, '1'); - expect(counter).toEqual(2); + expect(sync).toHaveBeenCalledTimes(2); }); });