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/integration/fixtures/options/delay.fixture.js')
-rw-r--r--tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay.fixture.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay.fixture.js
new file mode 100644
index 0000000000..a8bf2d4112
--- /dev/null
+++ b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay.fixture.js
@@ -0,0 +1,14 @@
+var assert = require('assert');
+var delay = 500;
+
+setTimeout(function() {
+ describe('delayed execution', function() {
+ it('should have no effect if attempted twice in the same suite', function() {
+ assert(true);
+ run();
+ assert(true);
+ });
+ });
+
+ run();
+}, delay);