Skip to content

Commit

Permalink
value will only ever be a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefy committed Jun 18, 2019
1 parent e321ed2 commit b08ab94
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/options/options.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ describe('OptionsComponent', () => {
});

it('should succeed to update filter object', () => {
const obj = { key: 'value' };
component.updateFilterObject(areas, b, obj);
expect(component.filter[areas][b]).toEqual(obj);
component.updateFilterObject(areas, b, true);
expect(component.filter[areas][b]).toEqual(true);
});

it('should succeed to delete filter object', () => {
component.updateFilterObject(areas, b, undefined);
component.updateFilterObject(areas, b, false);
});

it('should succeed to toggle filter to true', () => {
Expand Down

0 comments on commit b08ab94

Please sign in to comment.