fix(common): missing space in ngSwitch equality warning (#52180)

This adds a missing space between the sentences of the `===` vs `==` ngSwitch warning.

PR Close #52180
This commit is contained in:
cexbrayat
2023-10-12 14:18:52 +02:00
committed by Pawel Kozlowski
parent 4cd1b3d38b
commit 65b460448e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ export class NgSwitch {
`Previously the case value "${
stringifyValue(value)}" matched switch expression value "${
stringifyValue(
this._ngSwitch)}", but this is no longer the case with the stricter equality check.` +
this._ngSwitch)}", but this is no longer the case with the stricter equality check. ` +
'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.'));
}
this._lastCasesMatched = this._lastCasesMatched || matched;
@@ -124,7 +124,7 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
expect(consoleWarnSpy.calls.argsFor(0)[0])
.toBe(
'NG02001: As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. ' +
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check.` +
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check. ` +
'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.');