import { PageClientStore } from '../page-client.store'; import { QueryClientStore } from '../query-client.store'; describe('PageClientStore', () => { let pageClientStore: PageClientStore; beforeEach(() => { pageClientStore = new PageClientStore(); }); it('should extend QueryClientStore', () => { expect(pageClientStore).toBeInstanceOf(QueryClientStore); }); it('should be initialized with "page" client type', () => { /* * Since the constructor calls super('page'), we can verify the behavior * by checking that it's properly instantiated */ expect(pageClientStore).toBeDefined(); expect(pageClientStore.queryClient).toBeDefined(); }); it('should have all QueryClientStore properties and methods', () => { expect(pageClientStore.queryClient).toBeDefined(); expect(typeof pageClientStore.invalidate).toBe('function'); expect(typeof pageClientStore.dispose).toBe('function'); expect(typeof pageClientStore.cancel).toBe('function'); expect(typeof pageClientStore.remove).toBe('function'); }); });