@@ -37,12 +37,12 @@ describe("Checking the basic rendering and functionality", () => {
3737 render ( < PhoneInput
3838 onMount = { ( value : any ) => {
3939 assert ( value . countryCode === 1 ) ;
40- assert ( value . areaCode === 702 ) ;
40+ assert ( value . areaCode === " 702" ) ;
4141 assert ( value . phoneNumber === "1234567" ) ;
4242 assert ( value . isoCode === "us" ) ;
4343 assert ( value . valid ( ) ) ;
4444 } }
45- value = { { countryCode : 1 , areaCode : 702 , phoneNumber : "1234567" } }
45+ value = { { countryCode : 1 , areaCode : " 702" , phoneNumber : "1234567" } }
4646 /> ) ;
4747 assert ( screen . getByDisplayValue ( "+1 (702) 123 4567" ) ) ;
4848 } )
@@ -71,7 +71,7 @@ describe("Checking the basic rendering and functionality", () => {
7171 it ( "Using the input with FormItem" , async ( ) => {
7272 render ( < Form onFinish = { ( { phone} : any ) => {
7373 assert ( phone . countryCode === 1 ) ;
74- assert ( phone . areaCode === 907 ) ;
74+ assert ( phone . areaCode === " 907" ) ;
7575 assert ( phone . phoneNumber === "1234567" ) ;
7676 assert ( phone . isoCode === "us" ) ;
7777 } } >
@@ -87,7 +87,7 @@ describe("Checking the basic rendering and functionality", () => {
8787 } )
8888
8989 it ( "Checking input validation with FormItem" , async ( ) => {
90- render ( < Form initialValues = { { phone : { countryCode : 1 , areaCode : 702 , phoneNumber : "1234567" } } } >
90+ render ( < Form initialValues = { { phone : { countryCode : 1 , areaCode : " 702" , phoneNumber : "1234567" } } } >
9191 < FormItem name = "phone" rules = { [ {
9292 validator : ( _ : any , { valid} : any ) => {
9393 assert ( valid ( ) ) ;
@@ -102,7 +102,7 @@ describe("Checking the basic rendering and functionality", () => {
102102 } )
103103
104104 it ( "Checking form with initial value" , async ( ) => {
105- render ( < Form initialValues = { { phone : { countryCode : 1 , areaCode : 702 } } } >
105+ render ( < Form initialValues = { { phone : { countryCode : 1 , areaCode : " 702" } } } >
106106 < FormItem name = "phone" >
107107 < PhoneInput />
108108 </ FormItem >
@@ -114,7 +114,7 @@ describe("Checking the basic rendering and functionality", () => {
114114 } )
115115
116116 it ( "Checking validation with casual form actions" , async ( ) => {
117- render ( < Form data-testid = "form" initialValues = { { phone : { countryCode : 1 , areaCode : 702 , phoneNumber : "" } } } >
117+ render ( < Form data-testid = "form" initialValues = { { phone : { countryCode : 1 , areaCode : " 702" , phoneNumber : "" } } } >
118118 < FormItem name = "phone" rules = { [ {
119119 validator : ( _ : any , { valid} : any ) => {
120120 if ( valid ( ) ) return Promise . resolve ( ) ;
0 commit comments