mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Test failure to wrap method
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user