Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

560 B
Raw Blame
'use strict';

describe('suite1', function () {
  it('should display this spec', function () {});

  it('should only display this error', function () {
    throw new Error('this should be displayed');
  });

  it('should not display this error', function () {
    throw new Error('this should not be displayed');
  });
});

describe('suite2', function () {
  before(function () {
    throw new Error('this hook should not be displayed');
  });

  it('should not display this error', function () {
    throw new Error('this should not be displayed');
  });
});