X-Git-Url: http://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=test%2Flib%2Ftemplate%2Fotp-html.js;h=0e84a4950055ae59a1e2d547ef7f45bb8155a16d;hp=5aa3d8bc6a812b04214f8139090e4ece5a882f3d;hb=53ef948ea83106e82d55e60d6695a15e94bf725e;hpb=842a3da269de1ab82e9a2a12aae8ed5677f064d8 diff --git a/test/lib/template/otp-html.js b/test/lib/template/otp-html.js index 5aa3d8b..0e84a49 100644 --- a/test/lib/template/otp-html.js +++ b/test/lib/template/otp-html.js @@ -22,16 +22,17 @@ describe('Template OTPHTML', function () { }; }); - it('renders', function () { + it('renders', async function () { ctx.errors = ['an error', 'another error']; const result = OTPHTML(ctx, options); - lintHtml(result); + await lintHtml(result); assert(result); }); - it('covers empty error', function () { + it('covers empty error', async function () { + delete options.authenticator.otpBlurb; const result = OTPHTML(ctx, options); - lintHtml(result); + await lintHtml(result); assert(result); });