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.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ng/cacheFactorySpec.js b/test/ng/cacheFactorySpec.js
index dc68b63d..88e8e523 100644
--- a/test/ng/cacheFactorySpec.js
+++ b/test/ng/cacheFactorySpec.js
@@ -89,6 +89,11 @@ describe('$cacheFactory', function() {
}));
+ it('should return undefined when entry does not exist', inject(function($cacheFactory) {
+ expect(cache.remove('non-existent')).toBeUndefined();
+ }));
+
+
it('should stringify keys', inject(function($cacheFactory) {
cache.put('123', 'foo');
cache.put(123, 'bar');