mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 10:46:34 +00:00
Update areFunctionsEqual comment
This commit is contained in:
parent
91567cb5c7
commit
d6c8d77ceb
@ -25,9 +25,9 @@ ARGS =
|
|||||||
noMatch:
|
noMatch:
|
||||||
_: [ 'foo', 'bar', 'baz' ]
|
_: [ 'foo', 'bar', 'baz' ]
|
||||||
|
|
||||||
# Hacky way to check that both functions are equal based
|
# Hacky way to check that both functions are equal
|
||||||
# on what they returns, as mocha crashes when trying equal
|
# as mocha crashes when trying equal or deep equal
|
||||||
# or deep equal directly on the functions for some reason
|
# directly on the functions for some reason
|
||||||
areFunctionsEqual = (fn1, fn2) ->
|
areFunctionsEqual = (fn1, fn2) ->
|
||||||
return fn1.toString() is fn2.toString()
|
return fn1.toString() is fn2.toString()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user