Sha256: 9b9567813eb81419a14e55e0d76b1771184b64a20914a1047db867303495bd46

Contents?: true

Size: 873 Bytes

Versions: 8

Compression:

Stored size: 873 Bytes

Contents

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);
  });
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ende-0.5.22 components/indefinido/indemma/master/components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.21 components/indefinido/indemma/master/components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.6 components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.5 components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.4 components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.3 components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.2 components/chaijs/chai/1.9.1/test/display/message.js
ende-0.5.1 components/chaijs/chai/1.9.1/test/display/message.js