mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Pawel Kozlowski
parent
4cd1b3d38b
commit
65b460448e
@@ -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.');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user