Created
March 2, 2014 20:25
-
-
Save jskrepnek/9313235 to your computer and use it in GitHub Desktop.
Custom Jasmine matcher for writing expectations against resource objects
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
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