CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-wolfy87-eventemitter

Event based JavaScript for the browser with comprehensive event management API

91

1.26x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "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-eventemitter

tile.json