aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/cacheFactorySpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/cacheFactorySpec.js')
-rw-r--r--test/ng/cacheFactorySpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ng/cacheFactorySpec.js b/test/ng/cacheFactorySpec.js
index 88e8e523..ddfadbbc 100644
--- a/test/ng/cacheFactorySpec.js
+++ b/test/ng/cacheFactorySpec.js
@@ -104,6 +104,12 @@ describe('$cacheFactory', function() {
cache.remove(123);
expect(cache.info().size).toBe(0);
}));
+
+
+ it("should return value from put", inject(function($cacheFactory) {
+ var obj = {};
+ expect(cache.put('k1', obj)).toBe(obj);
+ }));
});