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.0/test/acceptance/duration.spec.js')
-rw-r--r--tests/lib/mocha-3.1.0/test/acceptance/duration.spec.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/acceptance/duration.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/duration.spec.js
new file mode 100644
index 0000000000..4f319b8a3c
--- /dev/null
+++ b/tests/lib/mocha-3.1.0/test/acceptance/duration.spec.js
@@ -0,0 +1,25 @@
+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);
+ })
+ })
+})