test(language-service): Remove redundant marker methods in MockHost (#33115)
Remove the following methods from MockHost: 1. `getMarkerLocations`: Replaced with `getLocationMarkerFor()` 2. `getReferenceMarkers`: Replaced with `getReferenceMarkerFor()` PR Close #33115
This commit is contained in:

committed by
Miško Hevery

parent
1a67d70bf8
commit
84ba1f012e
@ -20,7 +20,7 @@ describe('service without angular', () => {
|
||||
let ngHost = new TypeScriptServiceHost(mockHost, service);
|
||||
let ngService = createLanguageService(ngHost);
|
||||
const fileName = '/app/test.ng';
|
||||
let position = mockHost.getMarkerLocations(fileName) !['h1-content'];
|
||||
const position = mockHost.getLocationMarkerFor(fileName, 'h1-content').start;
|
||||
|
||||
it('should not crash a get template references',
|
||||
() => expect(() => ngService.getTemplateReferences()));
|
||||
|
Reference in New Issue
Block a user