66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9+ import ts from 'typescript' ;
910import { runInEachFileSystem } from '../../src/ngtsc/file_system/testing' ;
1011import { loadStandardTestFiles } from '../../src/ngtsc/testing' ;
1112import { NgtscTestEnvironment } from './env' ;
12- import ts from 'typescript' ;
1313
1414const testFiles = loadStandardTestFiles ( { forms : true } ) ;
1515
@@ -44,7 +44,7 @@ runInEachFileSystem(() => {
4444 const diags = env . driveDiagnostics ( ) ;
4545 expect ( diags . length ) . toBe ( 1 ) ;
4646 expect ( extractMessage ( diags [ 0 ] ) ) . toBe (
47- `Type 'null' is not assignable to type '() => FieldState <string, string | number>'.` ,
47+ `Type 'null' is not assignable to type 'FieldTree <string, string | number>'.` ,
4848 ) ;
4949 } ) ;
5050
@@ -100,7 +100,7 @@ runInEachFileSystem(() => {
100100 const diags = env . driveDiagnostics ( ) ;
101101 expect ( diags . length ) . toBe ( 1 ) ;
102102 expect ( extractMessage ( diags [ 0 ] ) ) . toBe (
103- `Type '() => FieldState <number, string | number>' is not assignable to type '() => FieldState <string, string | number>'.` ,
103+ `Type 'FieldTree <number, string | number>' is not assignable to type 'FieldTree <string, string | number>'.` ,
104104 ) ;
105105 } ) ;
106106
@@ -124,7 +124,7 @@ runInEachFileSystem(() => {
124124 const diags = env . driveDiagnostics ( ) ;
125125 expect ( diags . length ) . toBe ( 1 ) ;
126126 expect ( extractMessage ( diags [ 0 ] ) ) . toBe (
127- `Type '() => FieldState <unknown, string | number>' is not assignable to type '() => FieldState <string | number | Date | null, string | number>'.` ,
127+ `Type 'FieldTree <unknown, string | number>' is not assignable to type 'FieldTree <string | number | Date | null, string | number>'.` ,
128128 ) ;
129129 } ) ;
130130
@@ -187,7 +187,7 @@ runInEachFileSystem(() => {
187187 const diags = env . driveDiagnostics ( ) ;
188188 expect ( diags . length ) . toBe ( 1 ) ;
189189 expect ( extractMessage ( diags [ 0 ] ) ) . toBe (
190- `Type '() => FieldState <string, string | number>' is not assignable to type '() => FieldState <boolean, string | number>'.` ,
190+ `Type 'FieldTree <string, string | number>' is not assignable to type 'FieldTree <boolean, string | number>'.` ,
191191 ) ;
192192 } ) ;
193193
0 commit comments