File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export {
2+ CALLING_CODE_PER_COUNTRY_CODE ,
3+ EXCLUDED_COUNTRIES ,
4+ MASK_PER_COUNTRY ,
5+ } from './constants' ;
16export { PhoneInput } from './PhoneInput' ;
27export { isValidNumber } from './utils' ;
8+
9+ export type { PhoneInputProps } from './PhoneInput.types' ;
Original file line number Diff line number Diff line change 1- import { PhoneInput , isValidNumber } from '../' ;
1+ import {
2+ CALLING_CODE_PER_COUNTRY_CODE ,
3+ EXCLUDED_COUNTRIES ,
4+ MASK_PER_COUNTRY ,
5+ PhoneInput ,
6+ isValidNumber ,
7+ } from '../' ;
28
39describe ( 'Package exports' , ( ) => {
410 it ( 'should export PhoneInput component' , ( ) => {
@@ -10,4 +16,16 @@ describe('Package exports', () => {
1016 expect ( isValidNumber ) . toBeDefined ( ) ;
1117 expect ( typeof isValidNumber ) . toBe ( 'function' ) ;
1218 } ) ;
19+
20+ it ( 'should export calling codes' , ( ) => {
21+ expect ( CALLING_CODE_PER_COUNTRY_CODE ) . toBeDefined ( ) ;
22+ } ) ;
23+
24+ it ( 'should export excluded countries' , ( ) => {
25+ expect ( EXCLUDED_COUNTRIES ) . toBeDefined ( ) ;
26+ } ) ;
27+
28+ it ( 'should export masks' , ( ) => {
29+ expect ( MASK_PER_COUNTRY ) . toBeDefined ( ) ;
30+ } ) ;
1331} ) ;
Original file line number Diff line number Diff line change 1- export { isValidNumber , PhoneInput } from './PhoneInput' ;
1+ export {
2+ CALLING_CODE_PER_COUNTRY_CODE ,
3+ EXCLUDED_COUNTRIES ,
4+ isValidNumber ,
5+ MASK_PER_COUNTRY ,
6+ PhoneInput ,
7+ type PhoneInputProps ,
8+ } from './PhoneInput' ;
You can’t perform that action at this time.
0 commit comments