aboutsummaryrefslogtreecommitdiff
path: root/js/test
diff options
context:
space:
mode:
Diffstat (limited to 'js/test')
-rw-r--r--js/test/cache.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/test/cache.js b/js/test/cache.js
index 0b68b3d..22490c1 100644
--- a/js/test/cache.js
+++ b/js/test/cache.js
@@ -40,14 +40,15 @@
it('cache with custom filters', function() {
- var cache = new LuigiTemplate.Cache({
- foo: ['foo%{bar | barify}'],
+ var cache = LuigiTemplate.cache({
+ foo: ['foo%{bar | cache-barify}'],
}, {
- barify: function(s) {
+ 'cache-barify': function(s) {
return 'bar-' + s + '-bar';
},
});
+ // run template from cache, get result
var r = cache.run('foo', {
bar: 'foo',
});