@synotech/utils
Version:
a collection of utilities for internal use
17 lines (14 loc) • 403 B
text/typescript
import { phoneNumberGetInternationalString } from '..';
describe('Phone number object', () => {
beforeEach(() => {
jest.clearAllMocks();
});
it('get international string format', async () => {
const res = phoneNumberGetInternationalString({
countryCode: 'ZA',
phoneNumber: '0649940334',
})
expect(res).toHaveProperty('national')
expect(res).toHaveProperty('international')
});
});