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-9/

{
  "context": "This criteria evaluates how well the engineer uses EventEmitter's noConflict() method to manage global namespace conflicts. The focus is on proper usage of this specific API method to isolate EventEmitter and restore previous global values.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses noConflict() method",
      "description": "The solution correctly calls EventEmitter.noConflict() to retrieve an isolated reference to EventEmitter and restore the previous global.EventEmitter value",
      "max_score": 50
    },
    {
      "name": "Stores isolated reference",
      "description": "The solution properly stores the return value from noConflict() and uses this isolated reference rather than the global EventEmitter",
      "max_score": 25
    },
    {
      "name": "Returns usable constructor",
      "description": "The loadEventEmitter function returns the isolated EventEmitter constructor that can be used to create new EventEmitter instances",
      "max_score": 15
    },
    {
      "name": "Preserves functionality",
      "description": "The returned EventEmitter maintains full functionality including the ability to add listeners and emit events",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-wolfy87-eventemitter

tile.json