Skip to content

Instantly share code, notes, and snippets.

@ruidlopes
Created April 19, 2011 15:38
Show Gist options
  • Save ruidlopes/928498 to your computer and use it in GitHub Desktop.
Save ruidlopes/928498 to your computer and use it in GitHub Desktop.
testing expectations
var expectations = require("./expectations");
var f = function() {
return "we're here";
};
var expect = expectations.create(f);
// multiple bindings
expect.on("checked", console.log);
expect.on("checked", function(data) {
console.log("wsup 2", data);
});
expect.start(); // this can be run several times, if needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment