diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js')
-rw-r--r-- | tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js deleted file mode 100644 index 1248adeba7..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -// Root Suite -test.only('#Root-Suite, should run this test-case #1', function() { - (true).should.equal(true); -}); - -test.only('#Root-Suite, should run this test-case #2', function() { - (true).should.equal(true); -}); - -test('#Root-Suite, should not run this test', function() { - (false).should.equal(true); -}); - -suite('should only run .only test in this qunit suite'); - -test('should not run this test', function() { - (0).should.equal(1, 'this test should have been skipped'); -}); -test.only('should run this test', function() { - (0).should.equal(0, 'this .only test should run'); -}); -test('should run this test, not (includes the title of the .only test)', function() { - (0).should.equal(1, 'this test should have been skipped'); -}); - -// Mark suite -suite.only('should run all tests in this suite'); - -test('should run this test #1', function() { - (true).should.equal(true); -}); - -test('should run this test #2', function() { - (true).should.equal(true); -}); - -test('should run this test #3', function() { - (true).should.equal(true); -}); - -// Unmark this suite -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); -}); - -// Mark test as `only` override the suite behavior -suite.only('should run only tests that marked as `only`'); - -test('should not run this test #1', function() { - (false).should.equal(true); -}); - -test.only('should not run this test #2', function() { - (true).should.equal(true); -}); - -test('should not run this test #3', function() { - (false).should.equal(true); -}); - -test.only('should not run this test #4', function() { - (true).should.equal(true); -});
\ No newline at end of file |