Skip to content

Unclear description in official docs creating spy: 'ee.on' ? 'some event' ? #1524

Closed Answered by keithamus
Dmytro2V asked this question in Support
Discussion options

You must be logged in to vote

The code demonstrates an example of how to use the spy like a function.

In the example ee is assumed to be an instance of Node's EventEmitter. 'some event' is an example event name. The point of the example is to show that spy can be passed around like a regular function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by keithamus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1523 on June 30, 2023 17:15.