var mocha = require('mocha');
var should = require('should');
describe( 'mocha', function( ) {
it( 'should not foul everything up', function( ) {
var foo = "test";
foo.should.eql( 'test' );
} );
} );
✖ 1 of 1 tests failed:
1) mocha should not foul everything up:
AssertionError: expected { '0': 't', '1': 'e', '2': 's', '3': 't' } to equal 'test'
WHAT is going on? Why does this test not pass?[^Also what is going on with that code style? That's now how I write code now. That was ten years ago though as I write this...
⬅️ Turkey 2012 - we ate a lot :: Further robot house progress ➡️
Paul Clarkeʼs weblog - I live in Hythe in the deep South. Wed to Clare + father to 2, I am a full-stack web developr, and I do js / Node, some ruby, python, php ect ect. I like pubs, running, eating, home-automation + other diy jiggery-pokery, history, tree stuff, Television, squirrels, pirates, lego, + TIME TRAVEL.