oyvindkinsey/jsContract — pull request #1 by AdamNowotny (2011-11-27 17:50:57+00:00)
Title: expectFunction

added expectFunction, useful in cases where making checks on event handlers.

```js
Contract.expectFunction(settings.success, 'Success handler should be specified');
Contract.expectFunction(settings.error, 'Error handler should be specified');
```

unless I missed something and there is a different way to do this :)