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
// Example test that spies on SocketStream.publish.channel() calls | |
// Using Mocha to drive: http://visionmedia.github.com/mocha/ | |
// sinon.js for stubs/mocks/spies: http://sinonjs.org | |
// should.js for assertions: https://github.com/visionmedia/should.js | |
var sinon = require('sinon') | |
, should = require('should') | |
, ss = require('socketstream').start(); | |
describe("Spying on SocketStream for testing", function() { |
NewerOlder