Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Forked from karlbohlmark/vows_test.js
Created September 23, 2010 14:01
Show Gist options
  • Save tim-smart/593648 to your computer and use it in GitHub Desktop.
Save tim-smart/593648 to your computer and use it in GitHub Desktop.
var assert = require('assert'),
EventEmitter = require('events').EventEmitter,
myEventEmitter = new EventEmitter()
var A = function(){}
// Create a Test Suite
module.exports = {
'when the topic is a regular object': function (assert) {
var a = new A();
assert.isNotNull(a);
},
'when the topic is an EventEmitter': function (assert) {
assert.isNotNull(myEventEmitter);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment