deno.land / x / chai@v4.3.6 / test / display / message.js

نووسراو ببینە
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var chai = require('../..') , expect = chai.expect , should = chai.should();
var deepObj = { green: { tea: 'matcha' } , teas: [ 'chai' , 'matcha' , { tea: 'konacha' } ]};
var deepObj2 = { green: { tea: 'matcha' } , teas: [ 'chai' , 'oolong' , { tea: 'konacha' } ]};
chai.config.includeStack = true;
suite('object display', function () {
test('property', function () { deepObj.should.have.property('chai'); });
test('deep equal', function () { deepObj.should.deep.equal(deepObj2); });
test('deep equal no diff', function () { chai.config.showDiff = false; deepObj.should.deep.equal(deepObj2); chai.config.showDiff = true; });
});
suite('undefined/null display', function() { test('undefined for actual', function() { expect(undefined).to.equal(null); });});
chai

Version Info

Tagged at
2 years ago

External Dependencies

No external dependencies 🎉