add account settings page, rest of otp support, stdio credential helper, other misc
[squeep-authentication-module] / test / lib / template / otp-html.js
index 5aa3d8bc6a812b04214f8139090e4ece5a882f3d..0e84a4950055ae59a1e2d547ef7f45bb8155a16d 100644 (file)
@@ -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);
   });