aboutsummaryrefslogtreecommitdiffstats
path: root/test/ResourceSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-04 12:33:01 -0700
committerMisko Hevery2011-11-14 20:31:14 -0800
commita87f2fb9e4d65ac5d260e914b5e31aa0e0f47b2c (patch)
tree93e69475affd24ef5b16c68e47d1476bc37787a7 /test/ResourceSpec.js
parentc27aba4354c69c4a67fab587a59a8079cc9edc91 (diff)
downloadangular.js-a87f2fb9e4d65ac5d260e914b5e31aa0e0f47b2c.tar.bz2
refactor(mock): moved mocks into its own module
Diffstat (limited to 'test/ResourceSpec.js')
-rw-r--r--test/ResourceSpec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ResourceSpec.js b/test/ResourceSpec.js
index 2091a936..57aaffe0 100644
--- a/test/ResourceSpec.js
+++ b/test/ResourceSpec.js
@@ -3,6 +3,10 @@
describe("resource", function() {
var resource, CreditCard, callback;
+ function nakedExpect(obj) {
+ return expect(angular.fromJson(angular.toJson(obj)));
+ }
+
beforeEach(inject(
function($provide) {
$provide.value('$xhr.error', jasmine.createSpy('xhr.error'));