test() - function with parameter #3429
Unanswered
tho-gru-38
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a module to write tests and handle errors in a JavaScript class.
In the tests sections I have a lot of
I want to have a simpler api like:
The current implementation looks like this:
The problem with this code is that I can not access
terminateRun
within the anonymous function. Therefore I tried to pass the reference by using a parameter:But for some reason this still does not work.
Are there any ideas how to access the property
terminateRun
within the anonymous function?Kind Regards,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions