diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-10-06 05:21:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-06 05:21:44 +0300 |
commit | e59e8c57d613ee8a42951b6525256dc0ceb0b061 (patch) | |
tree | b1c883335953db01442a34afbbbf856072ac6ffd /tests/lib/mocha-3.1.0/test/acceptance/interfaces/tdd.spec.js | |
parent | d4ad50fc0f5c24ecb1e25703c9aa284e359120cb (diff) |
Upgrade mocha library for UI tests (#10692)
* Balance the UI tests job, second half currently 8 min longer
* Upgrade mocha to 3.1.0
* rebalance
* Remove old mocha
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/acceptance/interfaces/tdd.spec.js')
-rw-r--r-- | tests/lib/mocha-3.1.0/test/acceptance/interfaces/tdd.spec.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/acceptance/interfaces/tdd.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/interfaces/tdd.spec.js new file mode 100644 index 0000000000..7ad079e36d --- /dev/null +++ b/tests/lib/mocha-3.1.0/test/acceptance/interfaces/tdd.spec.js @@ -0,0 +1,40 @@ +suite('integer primitives', function(){ + suite('arithmetic', function(){ + var initialValue = 41; + + suiteSetup(function(done){ + expect(initialValue).to.eql(41); + initialValue += 1; + done(); + }); + + test('should add', function(){ + expect(initialValue).to.eql(42); + expect(1 + 1).to.equal(2); + expect(2 + 2).to.equal(4); + }); + + test('should subtract', function(){ + expect(initialValue).to.eql(42); + expect(1 - 1).to.equal(0); + expect(2 - 1).to.equal(1); + }); + + test.skip('should skip this test', function(){ + var zero = 0; + expect(zero).to.equal(1, 'this test should have been skipped'); + }); + + suite.skip('should skip this suite', function(){ + test('should skip this test', function(){ + var zero = 0; + expect(zero).to.equal(1, 'this test should have been skipped'); + }); + }); + + suiteTeardown(function(done){ + expect(initialValue).to.eql(42); + done(); + }); + }); +}); |