extractNationalNumber.test.js 633 B

12345678910111213141516
  1. import extractNationalNumber from './extractNationalNumber.js';
  2. import Metadata from '../metadata.js';
  3. import oldMetadata from '../../test/metadata/1.0.0/metadata.min.json' assert { type: 'json' };
  4. describe('extractNationalNumber', function () {
  5. it('should extract a national number when using old metadata', function () {
  6. var _oldMetadata = new Metadata(oldMetadata);
  7. _oldMetadata.selectNumberingPlan('RU');
  8. extractNationalNumber('88005553535', _oldMetadata).should.deep.equal({
  9. nationalNumber: '8005553535',
  10. carrierCode: undefined
  11. });
  12. });
  13. });
  14. //# sourceMappingURL=extractNationalNumber.test.js.map