Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("AllMessages", function (done) {
const ms = new Dispatch();
const handle = ms.attach((changes: ConflatingMessage[]) => {
expect(changes.length).to.equal(8);
handle.release();
done();
});
generateMessages(ms);
});