How do I check for the class of an object in a mocha spec in Coffeescript?
I have tried the following:
# foo.coffee
class Foo
module.exports = new Foo()
# foo_spec.coffee
should = require 'should'
{ Foo } = require 'foo'
foo = new Foo
foo.should.be.an.instanceOf(Foo)
However, I receive ReferenceError Foo is not defined