diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/integration/fixtures/retries')
4 files changed, 0 insertions, 73 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/async.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/async.fixture.js deleted file mode 100644 index 0e917e52f3..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/async.fixture.js +++ /dev/null @@ -1,28 +0,0 @@ -describe('retries', function() { - var times = 0; - before(function () { - console.log('before'); - }); - - after(function () { - console.log('after'); - }); - - beforeEach(function() { - console.log('before each', times); - }); - - afterEach(function () { - console.log('after each', times); - }); - - it('should allow override and run appropriate hooks', function (done) { - this.timeout(200); - this.retries(2); - console.log('TEST', times); - if (++times < 3) { - return setTimeout(done, 300); - } - setTimeout(done, 50); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/early-pass.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/early-pass.fixture.js deleted file mode 100644 index 0010d120fa..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/early-pass.fixture.js +++ /dev/null @@ -1,11 +0,0 @@ -describe('retries', function() { - this.retries(1); - var times = 0; - - it('should pass after 1 retry', function() { - times++; - if (times !== 2) { - throw new Error('retry error ' + times); - } - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/hooks.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/hooks.fixture.js deleted file mode 100644 index 47f6c6a1b7..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/hooks.fixture.js +++ /dev/null @@ -1,25 +0,0 @@ -describe('retries', function() { - var times = 0; - before(function () { - console.log('before'); - }); - - after(function () { - console.log('after'); - }); - - beforeEach(function() { - console.log('before each', times); - }); - - afterEach(function () { - console.log('after each', times); - }); - - it('should allow override and run appropriate hooks', function(){ - this.retries(4); - console.log('TEST', times); - times++; - throw new Error('retry error'); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/nested.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/nested.fixture.js deleted file mode 100644 index 43c40cb236..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/retries/nested.fixture.js +++ /dev/null @@ -1,9 +0,0 @@ -describe('retries', function() { - this.retries(3); - describe('nested', function () { - it('should fail after only 1 retry', function(){ - this.retries(1); - throw new Error('retry error'); - }); - }); -}); |