Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
there should be tests with multiple concurrent
Event
s to prevent passing the state with global variablesthe
it
blockshould have no other public properties
will contain no assertions whenEvent
has no enumerable properties at all, causing the assertion to be displayed in Red even though it passesRead this for more info
OP solved it, closing
You have an error in
unsubscribe
method, it does not remove the corresponding functions correctly because you are missing one argument to a particular function which by default will be0
.OP solved it, closing
OP left the building
OP solved it, closing
Ranks on old katas can't be changed
Ranks on old katas can't be changed
No tests, description not sufficient for solutions
any hints?
should be upgraded to modern JS/Node, with a
class
in the initial codepython fork with new test framework
Handlers (handling functions) are the subscribers of your
Event
object. The invocation context of a function is a value you get when you referencethis
inside the function. The requirement is,this
inside the handlers should point tothis
of theemit
method, i.e. the instance of theEvent
object. The error tells you it's not happening in your case.This functionality is needed so you could subscribe and unsubscribe to the event from within your handlers, like this:
Loading more items...