Skip to content

Instantly share code, notes, and snippets.

@JustinTulloss
Created August 31, 2010 04:14
Show Gist options
  • Select an option

  • Save JustinTulloss/558533 to your computer and use it in GitHub Desktop.

Select an option

Save JustinTulloss/558533 to your computer and use it in GitHub Desktop.
//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