File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,23 @@ test("valueGraphqlType returns String for text", () => {
2828} ) ;
2929
3030test ( "convertValueToFieldType converts string to number for number field" , ( ) => {
31- const result = updateProject . convertValueToFieldType ( "42" , "NUMBER " ) ;
31+ const result = updateProject . convertValueToFieldType ( "42" , "number " ) ;
3232 expect ( result ) . toBe ( 42 ) ;
3333} ) ;
3434
3535test ( "convertValueToFieldType converts string to float for number field" , ( ) => {
36- const result = updateProject . convertValueToFieldType ( "3.14" , "NUMBER " ) ;
36+ const result = updateProject . convertValueToFieldType ( "3.14" , "number " ) ;
3737 expect ( result ) . toBe ( 3.14 ) ;
3838} ) ;
3939
4040test ( "convertValueToFieldType converts zero string to number for number field" , ( ) => {
41- const result = updateProject . convertValueToFieldType ( "0" , "NUMBER " ) ;
41+ const result = updateProject . convertValueToFieldType ( "0" , "number " ) ;
4242 expect ( result ) . toBe ( 0 ) ;
4343} ) ;
4444
4545test ( "convertValueToFieldType throws error for invalid number" , ( ) => {
4646 expect ( ( ) => {
47- updateProject . convertValueToFieldType ( "not-a-number" , "NUMBER " ) ;
47+ updateProject . convertValueToFieldType ( "not-a-number" , "number " ) ;
4848 } ) . toThrow ( "Invalid number value: not-a-number" ) ;
4949} ) ;
5050
You can’t perform that action at this time.
0 commit comments