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