diff --git a/test/vitest/__tests__/stores/useStateQueryStore.spec.js b/test/vitest/__tests__/stores/useStateQueryStore.spec.js index 1ee70cbe0..d33c6c821 100644 --- a/test/vitest/__tests__/stores/useStateQueryStore.spec.js +++ b/test/vitest/__tests__/stores/useStateQueryStore.spec.js @@ -12,6 +12,7 @@ describe('useStateQueryStore', () => { const { add, isLoading, remove, reset } = useStateQueryStore(); const firstQuery = { url: 'myQuery' }; const secondQuery = { url: 'myQuery' }; + const thirdQuery = { url: 'myQuery' }; function getQueries() { return stateQueryStore.queries; @@ -41,16 +42,16 @@ describe('useStateQueryStore', () => { expect(isLoading().value).toBeFalsy(); }); - it('should add and remove hash', async () => { + it('should add and remove query', async () => { add(firstQuery); add(secondQuery); const beforeCount = getQueries().size; - const hash = add(); - expect(getQueries().has(hash)).toBeTruthy(); + add(thirdQuery); + expect(getQueries().has(thirdQuery)).toBeTruthy(); - remove(hash); - expect(getQueries().has(hash)).toBeFalsy(); + remove(thirdQuery); + expect(getQueries().has(thirdQuery)).toBeFalsy(); expect(getQueries().size).toBe(beforeCount); }); });