Home

Awesome

expectation

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

expectation flowchart

Example

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

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