Skip to content

Commit 715caea

Browse files
cexbrayatthePunderWoman
authored andcommitted
refactor(migrations): typos in signal migration incompatibility reasons (#58636)
A dot was appearing in the middle of the comment for `DerivedIsIncompatible`. While at it, a dot was missing in `ClassManuallyInstantiated`. PR Close #58636
1 parent d892b4a commit 715caea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/core/schematics/migrations/signal-migration/src/passes/problematic_patterns/incompatibility_human.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function getMessageForFieldIncompatibility(
5050
`This ${fieldName.single} is used in combination with \`@HostBinding\` and ` +
5151
`migrating would break.`,
5252
extra:
53-
`\`@HostBinding\` does not invoke the signal automatically and your code would. ` +
53+
`\`@HostBinding\` does not invoke the signal automatically and your code would ` +
5454
`break after migration. Use \`host\` of \`@Directive\`/\`@Component\`for host bindings.`,
5555
};
5656
case FieldIncompatibilityReason.PotentiallyNarrowedInTemplateButNoSupportYet:
@@ -144,7 +144,7 @@ export function getMessageForClassIncompatibility(
144144
return {
145145
short:
146146
`Class of this ${fieldName.single} is manually instantiated. ` +
147-
'This is discouraged and prevents migration',
147+
'This is discouraged and prevents migration.',
148148
extra:
149149
`Signal ${fieldName.plural} require a DI injection context. Manually instantiating ` +
150150
'breaks this requirement in some cases, so the migration is skipped.',

packages/core/schematics/migrations/signal-migration/test/golden.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ import {Component, Input} from '@angular/core';
827827
export class ManualInstantiation {
828828
// TODO: Skipped for migration because:
829829
// Class of this input is manually instantiated. This is discouraged and prevents
830-
// migration
830+
// migration.
831831
@Input() bla: string = '';
832832
}
833833
@@@@@@ modifier_tests.ts @@@@@@

0 commit comments

Comments
 (0)