Event based JavaScript for the browser with comprehensive event management API
91
{
"context": "This criteria evaluates how well the engineer uses wolfy87-eventemitter's removeEvent and removeAllListeners methods to implement event cleanup functionality. The focus is on proper usage of these specific package APIs for removing all listeners from events.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses EventEmitter instance",
"description": "Creates and uses an EventEmitter instance from the wolfy87-eventemitter package as the foundation of the subscriber manager",
"max_score": 15
},
{
"name": "removeEvent for clearEvent",
"description": "Uses removeEvent() or removeAllListeners() method with an event name parameter to implement the clearEvent functionality",
"max_score": 30
},
{
"name": "removeEvent for clearAll",
"description": "Uses removeEvent() or removeAllListeners() method without parameters to implement the clearAll functionality",
"max_score": 30
},
{
"name": "getListeners for verification",
"description": "Uses getListeners() method to implement getListenerCount functionality for verifying listener removal",
"max_score": 15
},
{
"name": "Proper listener registration",
"description": "Uses addListener(), on(), or similar EventEmitter methods to implement the subscribe functionality",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-wolfy87-eventemitterdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10