Skip to content

Commit

Permalink
fix(type): Fix call method
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Aug 29, 2016
1 parent 077148e commit 8f0200d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = (robot) ->
user: process.env.M2M_USER,
password: process.env.M2M_PASS
})
client.checkStatus(sim).then (result) ->
client.checkSim(sim).then (result) ->
msg = "Administration: #{if result.admin then 'OK' else 'Error'}\n"
msg += "GSM: #{if result.gsm then 'OK' else 'Error'}\n"
msg += "GPRS: #{if result.gprs then 'OK' else 'Error'}"
Expand Down
2 changes: 1 addition & 1 deletion test/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ process.env.M2M_PASS = "password"

class M2m
constructor: ->
checkStatus: (sim) ->
checkSim: (sim) ->
return new Promise (resolve, reject) ->
if sim is "+56999999999"
resolve({admin: true, gsm: true, gprs: true})
Expand Down

0 comments on commit 8f0200d

Please sign in to comment.