@@ -14,17 +14,22 @@ import {TypeScriptServiceHost} from '../src/typescript_host';
1414
1515import { MockTypescriptHost } from './test_utils' ;
1616
17- describe ( 'hover' , ( ) => {
18- let mockHost : MockTypescriptHost ;
19- let tsLS : ts . LanguageService ;
20- let ngLSHost : TypeScriptServiceHost ;
21- let ngLS : LanguageService ;
17+ fdescribe ( 'hover' , ( ) => {
18+ // const mockHost: MockTypescriptHost;
19+ // const tsLS: ts.LanguageService;
20+ // const ngLSHost: TypeScriptServiceHost;
21+ // const ngLS: LanguageService;
22+ const mockHost = new MockTypescriptHost ( [ '/app/main.ts' ] ) ;
23+ const tsLS = ts . createLanguageService ( mockHost ) ;
24+ const ngLSHost = new TypeScriptServiceHost ( mockHost , tsLS ) ;
25+ const ngLS = createLanguageService ( ngLSHost ) ;
2226
2327 beforeEach ( ( ) => {
24- mockHost = new MockTypescriptHost ( [ '/app/main.ts' , '/app/parsing-cases.ts' ] ) ;
25- tsLS = ts . createLanguageService ( mockHost ) ;
26- ngLSHost = new TypeScriptServiceHost ( mockHost , tsLS ) ;
27- ngLS = createLanguageService ( ngLSHost ) ;
28+ // mockHost = new MockTypescriptHost(['/app/main.ts', '/app/parsing-cases.ts']);
29+ // tsLS = ts.createLanguageService(mockHost);
30+ // ngLSHost = new TypeScriptServiceHost(mockHost, tsLS);
31+ // ngLS = createLanguageService(ngLSHost);
32+ mockHost . reset ( ) ;
2833 } ) ;
2934
3035 it ( 'should be able to find field in an interpolation' , ( ) => {
@@ -183,20 +188,20 @@ describe('hover', () => {
183188 } ) ;
184189
185190 it ( 'should be able to find the NgModule of a directive' , ( ) => {
186- const fileName = '/app/parsing-cases .ts' ;
191+ const fileName = '/app/app.component .ts' ;
187192 mockHost . override ( fileName , `
188193 import {Directive} from '@angular/core';
189194
190195 @Directive({
191196 selector: '[string-model]',
192197 })
193- export class «StringModel » {}` ) ;
194- const marker = mockHost . getReferenceMarkerFor ( fileName , 'StringModel ' ) ;
198+ export class «AppComponent » {}` ) ;
199+ const marker = mockHost . getReferenceMarkerFor ( fileName , 'AppComponent ' ) ;
195200 const quickInfo = ngLS . getHoverAt ( fileName , marker . start ) ;
196201 expect ( quickInfo ) . toBeTruthy ( ) ;
197202 const { textSpan, displayParts} = quickInfo ! ;
198203 expect ( textSpan ) . toEqual ( marker ) ;
199- expect ( toText ( displayParts ) ) . toBe ( '(directive) AppModule.StringModel : class' ) ;
204+ expect ( toText ( displayParts ) ) . toBe ( '(directive) AppModule.AppComponent : class' ) ;
200205 } ) ;
201206} ) ;
202207
0 commit comments