From a22f6a55ae65ca3675f7c97a030560e91d5b4d1f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 9 Sep 2018 19:43:43 -0400 Subject: js: update api, add luigi-compat.js and test/compat --- js/test/errors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/test/errors.js') diff --git a/js/test/errors.js b/js/test/errors.js index 3ce96d5..467a6c3 100644 --- a/js/test/errors.js +++ b/js/test/errors.js @@ -4,7 +4,7 @@ it('unknown key error', function() { assert.throws(function() { - var r = LuigiTemplate.run('foo%{unknown-key}', { + var r = Luigi.run('foo%{unknown-key}', { bar: 'foo', }); }, Error, /^unknown key/); @@ -12,7 +12,7 @@ it('unknown filter error', function() { assert.throws(function() { - var r = LuigiTemplate.run('foo%{bar | unknown-filter}', { + var r = Luigi.run('foo%{bar | unknown-filter}', { bar: 'foo', }); }, Error, /^unknown filter/); @@ -20,7 +20,7 @@ it('unknown template error', function() { assert.throws(function() { - var cache = new LuigiTemplate.Cache({ + var cache = new Luigi.Cache({ foo: [ 'foo%{bar}', ], -- cgit v1.2.3