Test failure to wrap method

This commit is contained in:
Shane Kilkelly
2017-03-16 10:02:19 +00:00
parent 40b238271d
commit a5aec5b812
3 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = (obj, methodName, key, logger) ->
metrics = require('./metrics')
if typeof obj[methodName] != 'function'
throw new Error("[Metrics] expected object property #{methodName} to be a function")
throw new Error("[Metrics] expected object property '#{methodName}' to be a function")
realMethod = obj[methodName]
key = "methods.#{key}"