diff options
Diffstat (limited to 'tests/lib/mocha-3.1.2/test/acceptance/interfaces/bdd.spec.js')
-rw-r--r-- | tests/lib/mocha-3.1.2/test/acceptance/interfaces/bdd.spec.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/test/acceptance/interfaces/bdd.spec.js b/tests/lib/mocha-3.1.2/test/acceptance/interfaces/bdd.spec.js new file mode 100644 index 0000000000..f6e24d88a8 --- /dev/null +++ b/tests/lib/mocha-3.1.2/test/acceptance/interfaces/bdd.spec.js @@ -0,0 +1,34 @@ +'use strict'; + +describe('integer primitives', function () { + describe('arithmetic', function () { + it('should add', function () { + expect(1 + 1).to.equal(2); + expect(2 + 2).to.equal(4); + }); + + it('should subtract', function () { + expect(1 - 1).to.equal(0); + expect(2 - 1).to.equal(1); + }); + }); +}); + +describe('integer primitives', function () { + describe('arithmetic is not', function () { + it('should add', function () { + expect(1 + 1).not.to.equal(3); + expect(2 + 2).not.to.equal(5); + }); + }); +}); + +context('test suite', function () { + beforeEach(function () { + this.number = 5; + }); + + specify('share a property', function () { + expect(this.number).to.equal(5); + }); +}); |