Skip to content

armgit / mocha

Public Imported from GitHub
0

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

559 B
Raw Blame
"use strict";

describe("durations", function () {
  describe("when slow", function () {
    it("should highlight in red", function (done) {
      setTimeout(function () {
        done();
      }, 100);
    });
  });

  describe("when reasonable", function () {
    it("should highlight in yellow", function (done) {
      setTimeout(function () {
        done();
      }, 50);
    });
  });

  describe("when fast", function () {
    it("should not highlight", function (done) {
      setTimeout(function () {
        done();
      }, 10);
    });
  });
});