X-Git-Url: https://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=test%2Flib%2Ftemplate%2Flogin-html.js;fp=test%2Flib%2Ftemplate%2Flogin-html.js;h=04e755584d6ee7c30584ea166b7f20963946b2dd;hp=d9ed065d86a451feee8f3f6cd8b86d203653066b;hb=2c3ddf0a6f40b9d0a4e54fa12b84b8af33eaaadc;hpb=54ca04e330d14a12344ddc2b161c1d9b55bfd7d7 diff --git a/test/lib/template/login-html.js b/test/lib/template/login-html.js index d9ed065..04e7555 100644 --- a/test/lib/template/login-html.js +++ b/test/lib/template/login-html.js @@ -31,6 +31,13 @@ describe('Template LoginHTML', function () { assert(result); }); + it('covers local user', async function () { + options.authenticator.authnEnabled = ['argon2']; + const result = LoginHTML(ctx, options); + await lintHtml(result); + assert(result); + }); + it('renders errors and additional content', async function () { ctx.errors = ['an error', 'another error']; options.manager.logoUrl = 'https://example.com/logo.png';