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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/mocha-3.1.2/test/acceptance/duration.spec.js')
-rw-r--r--tests/lib/mocha-3.1.2/test/acceptance/duration.spec.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/test/acceptance/duration.spec.js b/tests/lib/mocha-3.1.2/test/acceptance/duration.spec.js
new file mode 100644
index 0000000000..0194d4408c
--- /dev/null
+++ b/tests/lib/mocha-3.1.2/test/acceptance/duration.spec.js
@@ -0,0 +1,27 @@
+'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 highlight in green', function (done) {
+ setTimeout(function () {
+ done();
+ }, 10);
+ });
+ });
+});