We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 284a4c6 commit 014b3ebCopy full SHA for 014b3eb
test/stores/facets.test.ts
@@ -11,6 +11,18 @@ describe('facets', () => {
11
setActivePinia(createPinia())
12
})
13
14
+ describe('test toggle funtion', () => {
15
+ it('should toggle facetsOpen', () => {
16
+ const store = useFacetStore()
17
+ const initial = store.facetsOpen
18
+ store.toggleFacets()
19
+ expect(store.facetsOpen).toBe(!initial)
20
+
21
22
+ expect(store.facetsOpen).toBe(initial)
23
+ })
24
25
26
describe('without data', () => {
27
describe('facets', () => {
28
it('is initially empty', () => {
0 commit comments