Created
August 31, 2010 04:14
-
-
Save JustinTulloss/558533 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| //These vows | |
| var vows = require('vows'), | |
| assert = require('assert'), | |
| sys = require('sys'), | |
| zeromq = require('zeromq'); | |
| vows.describe('ZeroMQ') | |
| .addBatch({ | |
| 'A context': { | |
| topic: function() { this.callback(new zeromq.Context()) }, | |
| 'has a close method': function(c) { | |
| return assert.isFunction(c.close); | |
| } | |
| } | |
| }).export(module); | |
| results in: | |
| ✗ | |
| A context | |
| ✗ has a close method | |
| » An unexpected error was caught: [object Object] | |
| ✗ Errored » 1 errored (0.001s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment