Skip to content

Instantly share code, notes, and snippets.

@neilmanuell
Last active December 16, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilmanuell/5500938 to your computer and use it in GitHub Desktop.
Save neilmanuell/5500938 to your computer and use it in GitHub Desktop.
Mocha BDD test with nodeJS fail
function TickProvider ()
{
}
var should = require('should');
var TickProvider = require('../scripts/tick/tick_provider');
describe('TickProvider', function() {
it('should instantiate', function() {
var tick = new TickProvider()
});
});
@neilmanuell
Copy link
Author

am getting this error:

× 1 of 1 test failed:
  1. TickProvider should instantiate:
    TypeError: object is not a function

passes if line 7 commented out (instantiation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment