mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
32 lines
518 B
JavaScript
32 lines
518 B
JavaScript
var chai = require('../..')
|
|
, should = chai.should();
|
|
|
|
var deepObj = {
|
|
green: { tea: 'matcha' }
|
|
, teas: [
|
|
'chai'
|
|
, 'matcha'
|
|
, { tea: 'konacha' }
|
|
]
|
|
};
|
|
|
|
var deepObj2 = {
|
|
green: { tea: 'matcha' }
|
|
, teas: [
|
|
'chai'
|
|
, 'oolong'
|
|
, { tea: 'konacha' }
|
|
]
|
|
};
|
|
|
|
suite('object display', function () {
|
|
|
|
test('property', function () {
|
|
deepObj.should.have.property('chai');
|
|
});
|
|
|
|
test('deep equal', function () {
|
|
deepObj.should.deep.equal(deepObj2);
|
|
});
|
|
|
|
});
|