Skip to content

Commit 65b4604

Browse files
cexbrayatpkozlowski-opensource
authored andcommitted
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
1 parent 4cd1b3d commit 65b4604

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/common/src/directives/ng_switch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class NgSwitch {
144144
`Previously the case value "${
145145
stringifyValue(value)}" matched switch expression value "${
146146
stringifyValue(
147-
this._ngSwitch)}", but this is no longer the case with the stricter equality check.` +
147+
this._ngSwitch)}", but this is no longer the case with the stricter equality check. ` +
148148
'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.'));
149149
}
150150
this._lastCasesMatched = this._lastCasesMatched || matched;

packages/common/test/directives/ng_switch_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
124124
expect(consoleWarnSpy.calls.argsFor(0)[0])
125125
.toBe(
126126
'NG02001: As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. ' +
127-
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check.` +
127+
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check. ` +
128128
'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.');
129129

130130

0 commit comments

Comments
 (0)