test: improve symbol-extractor test by ignoring $1 suffix (#28098)
PR Close #28098
This commit is contained in:

committed by
Andrew Kushnir

parent
da2880d7c4
commit
6a9a48b0ac
@ -15,7 +15,7 @@ import {LContext} from './interfaces/context';
|
||||
import {DirectiveDef} from './interfaces/definition';
|
||||
import {TElementNode, TNode, TNodeProviderIndexes} from './interfaces/node';
|
||||
import {CLEANUP, CONTEXT, FLAGS, HOST, LView, LViewFlags, PARENT, RootContext, TVIEW} from './interfaces/view';
|
||||
import {readElementValue, readPatchedLView, stringify} from './util';
|
||||
import {readElementValue, readPatchedLView, renderStringify} from './util';
|
||||
|
||||
|
||||
|
||||
@ -201,7 +201,7 @@ export function loadLContext(target: {}, throwOnNotFound: boolean = true): LCont
|
||||
const context = getLContext(target);
|
||||
if (!context && throwOnNotFound) {
|
||||
throw new Error(
|
||||
ngDevMode ? `Unable to find context associated with ${stringify(target)}` :
|
||||
ngDevMode ? `Unable to find context associated with ${renderStringify(target)}` :
|
||||
'Invalid ng target');
|
||||
}
|
||||
return context;
|
||||
|
Reference in New Issue
Block a user