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/bail.fixture.js')
-rw-r--r--tests/lib/mocha-3.1.0/test/integration/fixtures/options/bail.fixture.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/bail.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/bail.fixture.js
new file mode 100644
index 0000000000..32d17e9aa8
--- /dev/null
+++ b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/bail.fixture.js
@@ -0,0 +1,21 @@
+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');
+ });
+});