libphonenumber-js
Version:
A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
8 lines (7 loc) • 373 B
JavaScript
import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js'
describe('applyInternationalSeparatorStyle', () => {
it('should change Google\'s international format style', () => {
applyInternationalSeparatorStyle('(xxx) xxx-xx-xx').should.equal('xxx xxx xx xx')
applyInternationalSeparatorStyle('(xxx)xxx').should.equal('xxx xxx')
})
})