libphonenumber-js
Version:
A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
14 lines • 505 B
JavaScript
import getNumberType from './getNumberType.js';
import oldMetadata from '../../test/metadata/1.0.0/metadata.min.json' assert { type: 'json' };
import Metadata from '../metadata.js';
describe('getNumberType', function () {
it('should get number type when using old metadata', function () {
getNumberType({
nationalNumber: '2133734253',
country: 'US'
}, {
v2: true
}, oldMetadata).should.equal('FIXED_LINE_OR_MOBILE');
});
});
//# sourceMappingURL=getNumberType.test.js.map