Commit f1153dd6 authored by Mark Florian's avatar Mark Florian

Fix tests broken by base filter name changes

parent c59b4504
...@@ -34,7 +34,7 @@ describe('filters module getters', () => { ...@@ -34,7 +34,7 @@ describe('filters module getters', () => {
); );
expect(selectedOptions).toHaveLength(1); expect(selectedOptions).toHaveLength(1);
expect(selectedOptions[0].name).toEqual('All'); expect(selectedOptions[0].name).toContain('All');
}); });
}); });
...@@ -62,7 +62,8 @@ describe('filters module getters', () => { ...@@ -62,7 +62,8 @@ describe('filters module getters', () => {
'severity', 'severity',
); );
expect(selectedOptionNames).toEqual({ firstOption: 'All', extraOptionCount: '' }); expect(selectedOptionNames.firstOption).toContain('All');
expect(selectedOptionNames.extraOptionCount).toBe('');
}); });
it('should return the correct message when multiple filters are selected', () => { it('should return the correct message when multiple filters are selected', () => {
......
...@@ -22,7 +22,7 @@ describe('moderator', () => { ...@@ -22,7 +22,7 @@ describe('moderator', () => {
'filters/setFilterOptions', 'filters/setFilterOptions',
Object({ Object({
filterId: 'project_id', filterId: 'project_id',
options: [{ name: 'All', id: 'all' }, { name: 'foo', id: '1' }], options: [{ name: 'All projects', id: 'all' }, { name: 'foo', id: '1' }],
}), }),
); );
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment