From 7d91bad2096e4bbc53ac73c299331adcd5078acf Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Thu, 30 May 2024 11:28:57 -0700 Subject: [PATCH] Remove tests for public collections --- .../__tests__/catalogFilterBar.spec.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFilterBar.spec.js b/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFilterBar.spec.js index c04a3fff5f..7879e17ba5 100644 --- a/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFilterBar.spec.js +++ b/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFilterBar.spec.js @@ -35,16 +35,6 @@ describe('catalogFilterBar', () => { wrapper = makeWrapper(); }); - describe('public collections', () => { - it('should list collections if no filters are selected', () => { - expect(wrapper.find('[data-test="collection"]').exists()).toBe(true); - }); - it('should filter by collection if one on click', () => { - wrapper.find('[data-test="collection"]').trigger('click'); - expect(wrapper.vm.collection).toBe(collection.id); - }); - }); - describe('removing filters', () => { beforeEach(() => { Object.entries(query).forEach(([key, val]) => { @@ -75,15 +65,6 @@ describe('catalogFilterBar', () => { expect(wrapper.vm.$route.query.languages).toBeTruthy(); expect(wrapper.vm.$route.query.keywords).toBeTruthy(); }); - it('removing collection filter should remove it from the query', () => { - wrapper.vm.resetCollection(); - expect(wrapper.vm.$route.query.collection).toBeUndefined(); - - // Make sure other queries weren't affected - expect(wrapper.vm.$route.query.coach).toBeTruthy(); - expect(wrapper.vm.$route.query.languages).toBeTruthy(); - expect(wrapper.vm.$route.query.keywords).toBeTruthy(); - }); it('removing list-based filter should only remove that item from the query', () => { wrapper.vm.removeLanguage('en'); expect(wrapper.vm.$route.query.languages).toBe('es');