From 301380c0b158724b69407e7a0e9737b61cac3ba9 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Thu, 21 Dec 2023 15:33:01 +0100 Subject: [PATCH] fix test --- packages/jotai-x/src/createAtomStore.spec.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/jotai-x/src/createAtomStore.spec.tsx b/packages/jotai-x/src/createAtomStore.spec.tsx index 5188efa..434e98e 100644 --- a/packages/jotai-x/src/createAtomStore.spec.tsx +++ b/packages/jotai-x/src/createAtomStore.spec.tsx @@ -342,14 +342,14 @@ describe('createAtomStore', () => { expect(result.current).toBe('Jane is 98 years old'); }); - it('does not include extended atom in set hooks', () => { + it('does include extended atom in set hooks', () => { const { result } = renderHook(() => Object.keys(useUserStore().set)); - expect(result.current).not.toContain('bio'); + expect(result.current).toContain('bio'); }); - it('does not include extended atom in use hooks', () => { + it('does include extended atom in use hooks', () => { const { result } = renderHook(() => Object.keys(useUserStore().use)); - expect(result.current).not.toContain('bio'); + expect(result.current).toContain('bio'); }); it('computes extended atom based on current state', () => {