...
> npm install -g mocha
> mkdir test-garden
> cd test-garden
var assert = require('assert');
describe('Fruit', function() {
describe('Apple', function() {
it('should be either red or green', function() {
var colour = 'red';
assert.equal('red', colour);
});
});
});
> mocha test.js
Should return follow result.
Fruit
Apple
√ should be either red or green
1 passing (16ms)