Skip to content

Instantly share code, notes, and snippets.

@luebken
Created January 12, 2011 23:01
Show Gist options
  • Save luebken/777075 to your computer and use it in GitHub Desktop.
Save luebken/777075 to your computer and use it in GitHub Desktop.
var assert = require('assert'),
EventEmitter = require('events').EventEmitter,
sys = require('sys'),
vows = require('vows');
vows.describe("Vows").addBatch({
"Creation": {
topic: function () {
var e = Object.create(EventEmitter.prototype);
process.nextTick(function () {
e.emit('error', "xxx");
});
return e;
},
'should be': function (e, topic) {
assert.equal(e, "xxx")
}
}
})
.export(module);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment