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/integration/fixtures/options/bail.fixture.js')
-rw-r--r--tests/lib/mocha-3.1.2/test/integration/fixtures/options/bail.fixture.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/test/integration/fixtures/options/bail.fixture.js b/tests/lib/mocha-3.1.2/test/integration/fixtures/options/bail.fixture.js
new file mode 100644
index 0000000000..5095e63158
--- /dev/null
+++ b/tests/lib/mocha-3.1.2/test/integration/fixtures/options/bail.fixture.js
@@ -0,0 +1,23 @@
+'use strict';
+
+describe('suite1', function () {
+ it('should display this spec', function () {});
+
+ it('should only display this error', function (done) {
+ throw new Error('this should be displayed');
+ });
+
+ it('should not display this error', function (done) {
+ throw new Error('this should not be displayed');
+ });
+});
+
+describe('suite2', function () {
+ before(function (done) {
+ throw new Error('this hook should not be displayed');
+ });
+
+ it('should not display this error', function (done) {
+ throw new Error('this should not be displayed');
+ });
+});