Skip to content

Commit

Permalink
additional test [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jan 10, 2020
1 parent 0ee079b commit 014f01a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/integration/fixtures/runner/uncaught-listeners.fixture.js
@@ -0,0 +1,12 @@
'use strict';

const assert = require('assert');
const mocha = require("../../../../lib/mocha");

for (let i = 0; i < 15; i++) {
const r = new mocha.Runner(new mocha.Suite("" + i, undefined));
r.run();
}

assert.equal(process.listenerCount('uncaughtException'), 1);
assert.equal(process.listeners('uncaughtException')[0].name, 'uncaughtEnd');

0 comments on commit 014f01a

Please sign in to comment.