X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=blobdiff_plain;f=test%2Flib%2Ftemplate-helper.js;fp=test%2Flib%2Ftemplate-helper.js;h=c62a3c01161be58bbc283c057bf75240312f941f;hp=75481adfee0b010330cc89a39656fd7f28e862ef;hb=d6b0485d9f665ccc886279e8bb447137acca2b9e;hpb=55ff163110484141dd9eb7f55e49a85bad082378 diff --git a/test/lib/template-helper.js b/test/lib/template-helper.js index 75481ad..c62a3c0 100644 --- a/test/lib/template-helper.js +++ b/test/lib/template-helper.js @@ -170,6 +170,17 @@ describe('Template Helper', function () { }); }); // renderNavLink + describe('elementAttributes', function () { + it('covers', function () { + const attributes = { + class: 'foo bar', + disabled: '', + }; + const result = th.elementAttributes(attributes); + assert.strictEqual(result, ' class="foo bar" disabled'); + }); + }); // elementAttributes + describe('OL', function () { it('covers', function () { const result = th.OL(['item', 'another item'], 1, { class: 'class' }, (item) => ({ class: `${item}-class` })); @@ -273,6 +284,7 @@ describe('Template Helper', function () { ]; }); it('covers', async function () { + this.slow(1000); // First invocation of htmlLint takes some time. const result = th.htmlPage(pagePathLevel, ctx, options, main); await htmlLint(result); assert(result);