X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Flib%2Ftemplate%2Flogin-html.js;h=40ecc4b1de0499ea782086324c6c0bb9c0dbe329;hb=04c85a23b032c46ac0e5a1d85db34b9a7560c216;hp=d9ed065d86a451feee8f3f6cd8b86d203653066b;hpb=53ef948ea83106e82d55e60d6695a15e94bf725e;p=squeep-authentication-module diff --git a/test/lib/template/login-html.js b/test/lib/template/login-html.js index d9ed065..40ecc4b 100644 --- a/test/lib/template/login-html.js +++ b/test/lib/template/login-html.js @@ -1,7 +1,6 @@ -/* eslint-env mocha */ 'use strict'; -const assert = require('assert'); +const assert = require('node:assert'); const { LoginHTML } = require('../../../lib/template'); const lintHtml = require('../../lint-html'); @@ -31,6 +30,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';