diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/integration/fixtures/options')
12 files changed, 0 insertions, 210 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/async-only-async.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/async-only-async.fixture.js deleted file mode 100644 index 5387d169b7..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/async-only-async.fixture.js +++ /dev/null @@ -1,3 +0,0 @@ -it('should pass', function(done){ - done(); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/async-only-sync.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/async-only-sync.fixture.js deleted file mode 100644 index d0dd9fa828..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/async-only-sync.fixture.js +++ /dev/null @@ -1 +0,0 @@ -it('throws an error', function() {}); 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 deleted file mode 100644 index 32d17e9aa8..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/bail.fixture.js +++ /dev/null @@ -1,21 +0,0 @@ -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'); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay-fail.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay-fail.fixture.js deleted file mode 100644 index 1475c918d4..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay-fail.fixture.js +++ /dev/null @@ -1,5 +0,0 @@ -setTimeout(function() { - throw new Error('oops'); - it('test', function() {}); - run(); -}, 100); 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 deleted file mode 100644 index a8bf2d4112..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/delay.fixture.js +++ /dev/null @@ -1,14 +0,0 @@ -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); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/grep.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/grep.fixture.js deleted file mode 100644 index 94785dc7db..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/grep.fixture.js +++ /dev/null @@ -1,17 +0,0 @@ -describe('grep', function() { - describe('Match', function() { - it('should run', function(){}); - it('should also run', function() {}); - }); - - describe('match', function() { - it('should run', function(){}); - it('should also run', function() {}); - }); - - describe('fail', function() { - it('should not be ran', function() { - throw new Error('Spec should not run'); - }); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/bdd.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/bdd.fixture.js deleted file mode 100644 index 783ce19b0b..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/bdd.fixture.js +++ /dev/null @@ -1,71 +0,0 @@ -describe.only('should run this suite', function() { - it('should run this test', function() {}); - - it('should run this test', function() {}); - - it('should run this test', function() {}); -}); - -describe('should not run this suite', function() { - it('should not run this test', function() { - (true).should.equal(false); - }); - - it('should not run this test', function() { - (true).should.equal(false); - }); - - it('should not run this test', function() { - (true).should.equal(false); - }); -}); - -describe.only('should run this suite too', function() { - describe('should run this nested suite', function () { - it('should run this test', function() {}); - - it('should run this test', function() {}); - - it('should run this test', function() {}); - }); -}); - -describe.only('should run this suite, even', function() { - describe('should run this nested suite, even', function () { - describe('should run this doubly-nested suite!', function () { - it('should run this test', function() {}); - - it('should run this test', function() {}); - - it('should run this test', function() {}); - }); - }); -}); - - -describe('should run this suite with an exclusive test', function() { - it.only('should run this test', function () {}); - - describe('should not run this nested suite', function () { - describe.only('should not run this doubly-nested suite', function () { - it('should not run this test', function() {}); - - it('should not run this test', function() {}); - - it('should not run this test', function() {}); - }); - }); -}); - -describe('should run this suite with an exclusive test (reverse order)', function() { - describe('should not run this nested suite', function () { - describe.only('should not run this doubly-nested suite', function () { - it('should not run this test', function() {}); - - it('should not run this test', function() {}); - - it('should not run this test', function() {}); - }); - }); - it.only('should run this test', function () {}); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/qunit.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/qunit.fixture.js deleted file mode 100644 index 9fa95f440b..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/qunit.fixture.js +++ /dev/null @@ -1,26 +0,0 @@ -suite.only('should run all tests in this suite'); - -test('should run this test #1', function() {}); - -test('should run this test #2', function() {}); - -test('should run this test #3', function() {}); - -test('should run this test #4', function() {}); - -test('should run this test #5', function() {}); - - -suite('should not run any of this suite\'s tests'); - -test('should not run this test', function() { - (false).should.equal(true); -}); - -test('should not run this test', function() { - (false).should.equal(true); -}); - -test('should not run this test', function() { - (false).should.equal(true); -});
\ No newline at end of file diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/tdd.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/tdd.fixture.js deleted file mode 100644 index 129a9e5d74..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/only/tdd.fixture.js +++ /dev/null @@ -1,35 +0,0 @@ -suite.only('should run all tests in this tdd suite', function() { - test('should run this test #1', function() {}); - - test('should run this test #2', function() {}); - - test('should run this test #3', function() {}); - - test('should run this test #4', function() {}); -}); - -suite('should not run this suite', function() { - test('should not run this test', function() { - (true).should.equal(false); - }); - - test('should not run this test', function() { - (true).should.equal(false); - }); - - test('should not run this test', function() { - (true).should.equal(false); - }); -}); - -suite.only('should run this suite too', function() { - suite('should run this nested suite', function () { - test('should run this test', function() {}); - - test('should run this test', function() {}); - - test('should run this test', function() {}); - - test('should run this test', function() {}); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/retries.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/retries.fixture.js deleted file mode 100644 index b2f76e12ea..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/retries.fixture.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('retries', function() { - it('should fail', function () { - throw new Error('retry failure'); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/sort-alpha.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/sort-alpha.fixture.js deleted file mode 100644 index 7a5302994f..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/sort-alpha.fixture.js +++ /dev/null @@ -1,7 +0,0 @@ -describe('alpha', function(){ - it('should be executed first', function(){ - if (global.beta) { - throw new Error('alpha was not executed first'); - } - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/sort-beta.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/options/sort-beta.fixture.js deleted file mode 100644 index 0951f49038..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/options/sort-beta.fixture.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('beta', function(){ - it('should be executed second', function(){ - global.beta = 1; - }); -}); |