Skip to content

Commit 61ec8a9

Browse files
committed
fix lint
1 parent 1a1efa8 commit 61ec8a9

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
@@ -1172,9 +1172,6 @@ describe('MdSelect', () => {
11721172
});
11731173

11741174
it('should adjust position of centered option if there is little space above', async(() => {
1175-
const formField = fixture.debugElement.query(By.css('.mat-form-field')).nativeElement;
1176-
const trigger = fixture.debugElement.query(By.css('.mat-select-trigger')).nativeElement;
1177-
11781175
const selectMenuHeight = 256;
11791176
const selectMenuViewportPadding = 8;
11801177
const selectItemHeight = 48;
@@ -1228,9 +1225,6 @@ describe('MdSelect', () => {
12281225
}));
12291226

12301227
it('should adjust position of centered option if there is little space below', async(() => {
1231-
const formField = fixture.debugElement.query(By.css('.mat-form-field')).nativeElement;
1232-
const trigger = fixture.debugElement.query(By.css('.mat-select-trigger')).nativeElement;
1233-
12341228
const selectMenuHeight = 256;
12351229
const selectMenuViewportPadding = 8;
12361230
const selectItemHeight = 48;

src/lib/select/select.ts

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

0 commit comments

Comments
 (0)