var assert = require('assert'); describe('martins personal tests', function () { describe('String#split', function () { it('should return an array', function () { assert(Array.isArray('a,b,c'.split(','))); }); }); describe('Asynch test', function () { var foo = false; before(function (done) { setTimeout(function () { foo = true; done(); }, 1500); }); it('should pass', function () { foo.should.be.true(); }); }); describe('should tests', function () { it('should be 5', function () { (5).should.be.exactly(5).and.be.a.Number(); }); it('test chaining', function() { var user = { name: 'tj', pets: ['tobi', 'loki', 'jane', 'bandit'] }; user.should.be.an.instanceOf(Object).and.have.property('name', 'tj'); user.should.have.ownProperty('name') .which.not.have.length(3) .and.be.equal('tj'); }); }); });