node-expectation

node-expectation lets you specify code that will run whenever something happens.

expectation

expectation lets you specify code that will run whenever something happens.

var expectation = require('../lib/expectation');

expectation.create(
  function () {
    return 'we are there!';
  },
  function (data) {
    console.log(data);
  }
);