# chai-events **Repository Path**: mirrors_vpulim/chai-events ## Basic Information - **Project Name**: chai-events - **Description**: Make assertions about event emitters - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-10-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Chai Events Make assertions about event emitters. ```js const chai = require("chai"); chai.use(require("chai-events")); const should = chai.should(); const EventEmitter = require("events"); describe("Event Emitting", function() { let emitter = null; beforeEach(function() { emitter = new EventEmitter(); }); it("should get emitted events", function() { let p = emitter.should.emit("get"); setTimeout(function() { emitter.emit("get"); }, 200); return p; }); it("should handle non-emitted events", function() { emitter.should.not.emit("missing"); }); }); ```