Skip to content

Instantly share code, notes, and snippets.

@jskrepnek
Created March 2, 2014 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jskrepnek/9313235 to your computer and use it in GitHub Desktop.
Save jskrepnek/9313235 to your computer and use it in GitHub Desktop.
Custom Jasmine matcher for writing expectations against resource objects
beforeEach(function() {
this.addMatchers({
toEqualData: function(expected) {
return angular.equals(this.actual, expected);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment