TDD Style Introduction
The TDD style is exposed through assert
interfaces. This provides
the classic assert.test
notation, similiar to that packaged with
node.js. This assert module, however, provides several additional
tests and is browser compatible.
// assert
var assert = require('chai').assert;
, foo = 'bar';
assert.typeOf(foo, 'string');
assert.equal(foo, 'bar');