Commit b4efa2dc authored by Jérémy Destin's avatar Jérémy Destin
Browse files

fix: Fix the lint and the tests. GNP-4309

parent 00e84e8a
......@@ -154,7 +154,7 @@ describe('SmallFacetsComponent', () => {
tester.detectChanges();
expect(tester.switchButton.length).toEqual(1);
expect(tester.switchButton[0]).toContainText('Focus');
expect(tester.switchButton[0]).toContainText('Details');
});
......
......@@ -74,8 +74,8 @@ export class SmallFacetsComponent implements OnInit {
this.checkBoxes.valueChanges.subscribe(values => {
const selectedTerms = Object.keys(values).filter(key => values[key]);
const multiSelection = Object.keys(values).filter(key => values[key] && key != 'Germplasm');
const unselectGermplasm = Object.keys(values).filter(key => key == 'Germplasm' && !values[key]);
const multiSelection = Object.keys(values).filter(key => values[key] && key !== 'Germplasm');
const unselectGermplasm = Object.keys(values).filter(key => key === 'Germplasm' && !values[key]);
if (multiSelection.length > 0 || unselectGermplasm.length > 0) {
this.displayGermplasmResult$.next(false);
......
Supports Markdown
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