Created
January 12, 2011 22:00
-
-
Save luebken/776991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'), | |
EventEmitter = require('events').EventEmitter, | |
sys = require('sys'), | |
vows = require('vows'); | |
var e = Object.create(EventEmitter.prototype); | |
vows.describe("Vows").addBatch({ | |
"Creation": { | |
topic: e, | |
'should be': function (topic) { | |
sys.puts("e " + e); | |
} | |
} | |
}) | |
.export(module); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So Vows has a special treatment of EventEmitters as topics. See "Promises" at http://vowsjs.org/#reference
So if I emit an event. Everything seems fine: https://gist.github.com/777075
Thanks to https://github.com/sanitz