Skip to content

Commit c516e52

Browse files
committed
fix lint
1 parent 8b95fb2 commit c516e52

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/lib/select/select.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,9 +1164,6 @@ describe('MdSelect', () => {
11641164
});
11651165

11661166
it('should adjust position of centered option if there is little space above', async(() => {
1167-
const formField = fixture.debugElement.query(By.css('.mat-form-field')).nativeElement;
1168-
const trigger = fixture.debugElement.query(By.css('.mat-select-trigger')).nativeElement;
1169-
11701167
const selectMenuHeight = 256;
11711168
const selectMenuViewportPadding = 8;
11721169
const selectItemHeight = 48;
@@ -1220,9 +1217,6 @@ describe('MdSelect', () => {
12201217
}));
12211218

12221219
it('should adjust position of centered option if there is little space below', async(() => {
1223-
const formField = fixture.debugElement.query(By.css('.mat-form-field')).nativeElement;
1224-
const trigger = fixture.debugElement.query(By.css('.mat-select-trigger')).nativeElement;
1225-
12261220
const selectMenuHeight = 256;
12271221
const selectMenuViewportPadding = 8;
12281222
const selectItemHeight = 48;

src/lib/select/select.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ import {
4141
ConnectedOverlayDirective,
4242
Overlay,
4343
RepositionScrollStrategy,
44+
// This import is only used to define a generic type. The current TypeScript version incorrectly
45+
// considers such imports as unused (https://github.com/Microsoft/TypeScript/issues/14953)
46+
// tslint:disable-next-line:no-unused-variable
4447
ScrollStrategy,
4548
ViewportRuler
4649
} from '@angular/cdk/overlay';

0 commit comments

Comments
 (0)