Skip to content

Commit

Permalink
Fixed a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jul 3, 2020
1 parent 63dafe3 commit b73f596
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ describe('basic tests', function() {
try {
await TonicPow.init('57d85ad0e7622eff250c9b8619b4de7f',{environment: TonicPow.config.environments.Local.name})
} catch (e) {
//todo: flags for unit vs integration teste is needed
if (e.indexOf("connect ECONNREFUSED") === -1) {
if(typeof e === "object") {
expect(e.message).to.equal('authentication failed')
}
}
Expand Down

0 comments on commit b73f596

Please sign in to comment.