diff -r 15074091bdba -r 0b1bf06c28ed unittests/tests/utils.js --- a/unittests/tests/utils.js Wed Nov 30 14:27:39 2011 +0100 +++ b/unittests/tests/utils.js Wed Nov 30 16:13:22 2011 +0100 @@ -52,4 +52,9 @@ equal(IriSP.DEC_HEXA_COLOR(24345), "5F19", "second test passes"); }); + + test("test template function", function() { + IriSP.default_templates_vars["test_fixture"] = "FIXTURE"; + equal(IriSP.templToHTML("{{test_fixture}} {{foo}}", {foo: 2}), "FIXTURE 2", "correct template returned"); + }); }