diff --git a/src/and/and.fork.test.ts b/src/and/and.fork.test.ts index 06861e3c..764fb0c5 100644 --- a/src/and/and.fork.test.ts +++ b/src/and/and.fork.test.ts @@ -26,13 +26,19 @@ test('When at least one store has falsy value result must be false', async () => await allSettled(iterate, { scope }); await allSettled(iterate, { scope }); + expect(scope.getState($result)).toBe(false); expect(fn).toHaveBeenCalledTimes(1); + + await allSettled(iterate, { scope }); + + expect(fn).toHaveBeenCalledTimes(2); expect(argumentHistory(fn)).toMatchInlineSnapshot(` [ false, + true, ] `); - expect(scope.getState($result)).toBe(false); + expect(scope.getState($result)).toBe(true); }); test('Returns boolean value for single store', async () => { diff --git a/src/or/or.fork.test.ts b/src/or/or.fork.test.ts index 20de9841..4e4c65af 100644 --- a/src/or/or.fork.test.ts +++ b/src/or/or.fork.test.ts @@ -27,12 +27,18 @@ it('should be true when at least one store has truthy value', async () => { await allSettled(iterate, { scope }); expect(fn).toHaveBeenCalledTimes(1); + expect(scope.getState($result)).toBe(true); + + await allSettled(iterate, { scope }); + + expect(fn).toHaveBeenCalledTimes(2); expect(argumentHistory(fn)).toMatchInlineSnapshot(` [ true, + false, ] `); - expect(scope.getState($result)).toBe(true); + expect(scope.getState($result)).toBe(false); }); test('Returns boolean value for single store', async () => {