mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-20 16:42:13 +11:00
16 lines
No EOL
677 B
JavaScript
16 lines
No EOL
677 B
JavaScript
import extractCountryCallingCode from './extractCountryCallingCode';
|
|
import metadata from '../../metadata.min';
|
|
describe('extractCountryCallingCode', function () {
|
|
it('should extract country calling code from a number', function () {
|
|
extractCountryCallingCode('+78005553535', null, null, metadata).should.deep.equal({
|
|
countryCallingCode: '7',
|
|
number: '8005553535'
|
|
});
|
|
extractCountryCallingCode('+7800', null, null, metadata).should.deep.equal({
|
|
countryCallingCode: '7',
|
|
number: '800'
|
|
});
|
|
extractCountryCallingCode('', null, null, metadata).should.deep.equal({});
|
|
});
|
|
});
|
|
//# sourceMappingURL=extractCountryCallingCode.test.js.map
|