formatPhoneNumberForMobileDialing.test.js 928 B

123456789101112131415
  1. // Google's tests:
  2. // https://github.com/googlei18n/libphonenumber/blob/597983dc4d56ed7e5337a8e74316dc7a3d02d794/javascript/i18n/phonenumbers/phonenumberutil_test.js
  3. // import metadata from '../metadata.min.json' assert { type: 'json' }
  4. // import formatPhoneNumberForMobileDialing from './formatPhoneNumberForMobileDialing.js'
  5. // describe('formatPhoneNumberForMobileDialing', () =>
  6. // {
  7. // it('should format for mobile dialing', () =>
  8. // {
  9. // formatPhoneNumberForMobileDialing({ phone: '8005553535', country: 'RU' }, 'US', true, metadata).should.equal('+7 800 555 3535')
  10. // formatPhoneNumberForMobileDialing({ phone: '8005553535', country: 'RU' }, 'US', false, metadata).should.equal('+78005553535')
  11. // formatPhoneNumberForMobileDialing({ phone: '8005553535', country: 'RU' }, 'RU', false, metadata).should.equal('8005553535')
  12. // })
  13. // })
  14. "use strict";
  15. //# sourceMappingURL=formatPhoneNumberForMobileDialing.test.js.map