diff --git a/packages/platform-browser/testing/src/matchers.ts b/packages/platform-browser/testing/src/matchers.ts index f43fe4e051..01417f570b 100644 --- a/packages/platform-browser/testing/src/matchers.ts +++ b/packages/platform-browser/testing/src/matchers.ts @@ -107,7 +107,7 @@ export const expect: (actual: any) => NgMatchers = _global.expect; return '' + m; } const res: any[] = []; - m.forEach((v: any, k: any) => { res.push(`${k}:${v}`); }); + m.forEach((v: any, k: any) => { res.push(`${String(k)}:${String(v)}`); }); return `{ ${res.join(',')} }`; };