Skip to content

Commit

Permalink
Remove tests for public collections
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed May 30, 2024
1 parent 77ce2f7 commit 7d91bad
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]) => {
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 7d91bad

Please sign in to comment.