blob: ba444c8f7f6d1edff6a6853d0a87e1b8b4bee7b5 (
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
|
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);
})
})
|