blob: f6e24d88a8d2249c9be3819c2c601bad20b3061d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
});
});
|