test: improve symbol-extractor test by ignoring $1 suffix (#28098)

PR Close #28098
This commit is contained in:
Misko Hevery
2019-01-12 00:59:48 -08:00
committed by Andrew Kushnir
parent da2880d7c4
commit 6a9a48b0ac
19 changed files with 111 additions and 82 deletions

View File

@ -31,7 +31,10 @@ export function isDifferent(a: any, b: any): boolean {
return !(a !== a && b !== b) && a !== b;
}
export function stringify(value: any): string {
/**
* Used for stringify render output in Ivy.
*/
export function renderStringify(value: any): string {
if (typeof value == 'function') return value.name || value;
if (typeof value == 'string') return value;
if (value == null) return '';