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/multiple-done.fixture.js')
-rw-r--r--tests/lib/mocha-3.1.0/test/integration/fixtures/multiple-done.fixture.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/multiple-done.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/multiple-done.fixture.js
new file mode 100644
index 0000000000..63a704061c
--- /dev/null
+++ b/tests/lib/mocha-3.1.0/test/integration/fixtures/multiple-done.fixture.js
@@ -0,0 +1,18 @@
+// The suite below should result in an additional error, but does
+// not. Uncomment once this bug is resolved.
+
+// describe('suite', function() {
+// beforeEach(function(done) {
+// done();
+// done();
+// });
+
+// it('test', function() {});
+// });
+
+it('should fail in a test-case', function(done) {
+ process.nextTick(function(){
+ done();
+ done();
+ });
+});