We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de51e9 commit 0810680Copy full SHA for 0810680
test/spec/provider/watcher.js
@@ -1,7 +1,6 @@
1
'use strict';
2
3
describe('filterWatcherProvider', function() {
4
-
5
//helpers
6
function n(n) { return n; }
7
var stub = { fn: function(x) { return n(x) } };
@@ -56,4 +55,14 @@ describe('filterWatcherProvider', function() {
56
55
});
57
expect(spy.callCount).toEqual(10);
58
}));
+
59
+ it('should clear cache manually', function() {
60
+ window.setTimeout = function(cb) { cb(); };
61
+ inject(function(filterWatcher) {
62
+ var src = [1,2]
63
+ , result = [3,4];
64
+ filterWatcher.memoize('fName', src, null, result);
65
+ expect(filterWatcher.isMemoized('fName', src)).toBeFalsy();
66
+ });
67
68
0 commit comments