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ʼs blog - I live near Folkestone in the deep South. Wed + father to two, I'm a full-stack web developr, + I do js / node, some ruby, python, php ect ect. My hobbies are pubbing, parkrun, restaurants, home-automation and other diy jiggery-pokery, history, tree stuff, telly 📺, squirrels, pirates ☠️, lego, + TIME TRAVEL.