Skip to content

Commit

Permalink
fix(select): unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Sep 22, 2018
1 parent 4873c4a commit 3c7f087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/select/select.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2220,8 +2220,8 @@ describe('McSelect', () => {
dispatchKeyboardEvent(host, 'keydown', END);
fixture.detectChanges();

// <option amount> * <option height> - <panel height> = 30 * 32 - 224 = 736
expect(panel.scrollTop).toBe(736, 'Expected panel to be scrolled to the bottom');
// <option amount> * <option height> - <panel height> = 30 * 32 - 228 = 736
expect(panel.scrollTop).toBe(732, 'Expected panel to be scrolled to the bottom');
}));

it('should scroll to the active option when typing', fakeAsync(() => {
Expand Down

0 comments on commit 3c7f087

Please sign in to comment.