diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-04-26 09:52:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 09:52:46 +0300 |
commit | 317700513cc732bb2371edbe645555feadbbc545 (patch) | |
tree | efc28c578903563cd72d8436dbefcec32ab161c7 /tests/lib/mocha-3.1.0/test/integration/pending.spec.js | |
parent | bc8222d451337185db343486319af6782b009148 (diff) | |
parent | 199e43ef5809d09803416db72ce0ace6c9a4d895 (diff) |
Merge pull request #11651 from piwik/3.x-dev3.0.4-b1
Release Piwik 3.0.4-b1
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/integration/pending.spec.js')
-rw-r--r-- | tests/lib/mocha-3.1.0/test/integration/pending.spec.js | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/pending.spec.js b/tests/lib/mocha-3.1.0/test/integration/pending.spec.js deleted file mode 100644 index 4d4beffc2a..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/pending.spec.js +++ /dev/null @@ -1,100 +0,0 @@ -var assert = require('assert'); -var run = require('./helpers').runMochaJSON; -var args = []; - -describe('pending', function() { - describe('pending specs', function() { - it('should be created by omitting a function', function(done) { - run('pending/spec.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 1); - assert.equal(res.stats.passes, 0); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - - describe('synchronous skip()', function() { - describe('in spec', function() { - it('should immediately skip the spec and run all others', function(done) { - run('pending/skip-sync-spec.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 1); - assert.equal(res.stats.passes, 1); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - - describe('in before', function() { - it('should skip all suite specs', function(done) { - run('pending/skip-sync-before.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 2); - assert.equal(res.stats.passes, 0); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - - describe('in beforeEach', function() { - it('should skip all suite specs', function(done) { - run('pending/skip-sync-beforeEach.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 2); - assert.equal(res.stats.passes, 0); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - }); - - describe('asynchronous skip()', function() { - describe('in spec', function() { - it('should immediately skip the spec and run all others', function(done) { - run('pending/skip-async-spec.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 1); - assert.equal(res.stats.passes, 1); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - - describe('in before', function() { - it('should skip all suite specs', function(done) { - run('pending/skip-async-before.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 2); - assert.equal(res.stats.passes, 0); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - - describe('in beforeEach', function() { - it('should skip all suite specs', function(done) { - run('pending/skip-sync-beforeEach.fixture.js', args, function(err, res) { - assert(!err); - assert.equal(res.stats.pending, 2); - assert.equal(res.stats.passes, 0); - assert.equal(res.stats.failures, 0); - assert.equal(res.code, 0); - done(); - }); - }); - }); - }); -}); |