Skip to content

Commit

Permalink
#38: fix unit-test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
macjohnny committed Jun 28, 2018
1 parent 097b662 commit 0dc0ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
// the form control (i.e. _initializeSelection())
// this needs to be done after the filteredBanks are loaded initially
// and after the mat-option elements are available
this.singleSelect.compareWith = (a: Bank, b: Bank) => a.id === b.id;
this.multiSelect.compareWith = (a: Bank, b: Bank) => a.id === b.id;
this.singleSelect.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
this.multiSelect.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/mat-select-search/mat-select-search.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export class MatSelectSearchTestComponent implements OnInit, OnDestroy, AfterVie
// the form control (i.e. _initializeSelection())
// this needs to be done after the filteredBanks are loaded initially
// and after the mat-option elements are available
this.matSelect.compareWith = (a: Bank, b: Bank) => a.id === b.id;
this.matSelectMulti.compareWith = (a: Bank, b: Bank) => a.id === b.id;
this.matSelect.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
this.matSelectMulti.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
});
}

Expand Down

0 comments on commit 0dc0ece

Please sign in to comment.