Welcome to mirror list, hosted at ThFree Co, Russian Federation.

timeout.spec.js « integration « test « mocha-3.1.0 « lib « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 33b8e3309393992dc50e4bca4b7331fa3cde8529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var assert = require('assert');
var run    = require('./helpers').runMochaJSON;
var args   = [];

describe('this.timeout()', function() {
  it('is respected by sync and async suites', function(done) {
    run('timeout.fixture.js', args, function(err, res) {
      assert(!err);
      assert.equal(res.stats.pending, 0);
      assert.equal(res.stats.passes, 0);
      assert.equal(res.stats.failures, 2);
      assert.equal(res.code, 2);
      done();
    });
  });
});