Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
Make sure Jasmine is included somehow, then declare a dependency on this module.
Usage:
expect(fn).toBeFunction()
*/
define([
'underscore',
], function(_) {
beforeEach(function() {
this.addMatchers({
toBeAFunction: function() {
return _.isFunction(this.actual);
},
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.