Event based JavaScript for the browser with comprehensive event management API
91
{
"context": "This evaluation assesses how effectively the engineer uses the wolfy87-eventemitter package's listener retrieval capabilities to implement an event listener inspector. The focus is on proper usage of getListeners() and flattenListeners() methods to query and extract listener information.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses getListeners",
"description": "Calls emitter.getListeners(eventName) to retrieve listener objects for events in getListenerCounts() and getActiveEvents() functions",
"max_score": 30
},
{
"name": "Uses flattenListeners",
"description": "Calls emitter.flattenListeners() to convert listener objects to plain function arrays in extractListeners() function",
"max_score": 25
},
{
"name": "Correct listener counting",
"description": "Properly counts listeners by checking the length of the array returned by getListeners() for each event",
"max_score": 20
},
{
"name": "Active event filtering",
"description": "Correctly identifies active events by checking if getListeners() returns a non-empty array for each event name",
"max_score": 15
},
{
"name": "Returns correct types",
"description": "getListenerCounts() returns an object mapping event names to numbers, getActiveEvents() returns an array of strings, and extractListeners() returns an array of functions",
"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