Created
May 29, 2012 14:04
-
-
Save dipnlik/2828609 to your computer and use it in GitHub Desktop.
adds flunk() to jasmine so specs can be marked as incomplete. Not using pending() because the spec is marked as failed
This file contains 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
beforeEach(function() { | |
this.addMatchers({ | |
flunk: function(description) { | |
this.message = function() { return "Flunk: " + description + "."; } | |
return false; | |
} | |
}); | |
}); | |
function flunk(description) { | |
expect(true).flunk(description); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment