Created
March 3, 2013 20:55
-
-
Save voronianski/5078252 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Put on top of the file before describe statements | |
Usage: | |
expect(fn).toBeFunction() | |
*/ | |
beforeEach(function (){ | |
this.addMatchers({ | |
toBeFunction: function (){ | |
return Object.prototype.toString.call(this.actual)==='[object Function]'; | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment