Skip to content

Instantly share code, notes, and snippets.

@dipnlik
Created May 29, 2012 14:04
Show Gist options
  • Save dipnlik/2828609 to your computer and use it in GitHub Desktop.
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
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