Skip to content

Commit

Permalink
test: fix E.164 format assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed May 1, 2020
1 parent 517494b commit 78ada96
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@
"jshint-stylish": "^2.2.1",
"lodash.template": "^4.5.0",
"mocha": "^7.1.2",
"mongoose": ">=5.9.10",
"mongoose": ">=5.9.11",
"prettier": "^2.0.5",
"shelljs": "^0.8.4",
"supertest": "^4.0.2"
},
"peerDependencies": {
"mongoose": ">=5.9.10"
"mongoose": ">=5.9.11"
},
"dependencies": {
"@lykmapipo/common": ">=0.33.0",
"@lykmapipo/env": ">=0.17.3",
"@lykmapipo/express-common": ">=0.18.2",
"@lykmapipo/express-rest-actions": ">=0.8.14",
"@lykmapipo/kue-common": ">=0.6.10",
"@lykmapipo/mongoose-common": ">=0.32.1",
"@lykmapipo/mongoose-common": ">=0.33.0",
"@lykmapipo/mongoose-exportable": ">=0.3.27",
"@lykmapipo/phone": ">=0.5.22",
"@lykmapipo/phone": ">=0.6.0",
"@lykmapipo/tz-ega-sms": ">=0.5.14",
"async": ">=3.2.0",
"bipsms": ">=0.5.13",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/common.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('utils', () => {
});

it('should use default country code', () => {
const phoneNumber = toE164('0714969698', 'TZ');
const phoneNumber = toE164('0714969698');
expect(phoneNumber).to.exist;
expect(phoneNumber).to.be.eql('255714969698');
});
Expand Down

0 comments on commit 78ada96

Please sign in to comment.