@@ -124,26 +124,26 @@ describe('MatIcon', () => {
124124 let fixture = TestBed . createComponent ( IconFromSvgName ) ;
125125 let svgElement : SVGElement ;
126126 const testComponent = fixture . componentInstance ;
127- const mdIconElement = fixture . debugElement . nativeElement . querySelector ( 'mat-icon' ) ;
127+ const iconElement = fixture . debugElement . nativeElement . querySelector ( 'mat-icon' ) ;
128128
129129 testComponent . iconName = 'fido' ;
130130 fixture . detectChanges ( ) ;
131131 http . expectOne ( 'dog.svg' ) . flush ( FAKE_SVGS . dog ) ;
132- svgElement = verifyAndGetSingleSvgChild ( mdIconElement ) ;
132+ svgElement = verifyAndGetSingleSvgChild ( iconElement ) ;
133133 verifyPathChildElement ( svgElement , 'woof' ) ;
134134
135135 // Change the icon, and the SVG element should be replaced.
136136 testComponent . iconName = 'fluffy' ;
137137 fixture . detectChanges ( ) ;
138138 http . expectOne ( 'cat.svg' ) . flush ( FAKE_SVGS . cat ) ;
139- svgElement = verifyAndGetSingleSvgChild ( mdIconElement ) ;
139+ svgElement = verifyAndGetSingleSvgChild ( iconElement ) ;
140140 verifyPathChildElement ( svgElement , 'meow' ) ;
141141
142142 // Using an icon from a previously loaded URL should not cause another HTTP request.
143143 testComponent . iconName = 'fido' ;
144144 fixture . detectChanges ( ) ;
145145 http . expectNone ( 'dog.svg' ) ;
146- svgElement = verifyAndGetSingleSvgChild ( mdIconElement ) ;
146+ svgElement = verifyAndGetSingleSvgChild ( iconElement ) ;
147147 verifyPathChildElement ( svgElement , 'woof' ) ;
148148
149149 // Assert that a registered icon can be looked-up by url.
0 commit comments