update devDependencies, clean up lint issues
[squeep-authentication-module] / test / lib / template / otp-html.js
index 5aa3d8bc6a812b04214f8139090e4ece5a882f3d..cdfcc0d4247ec94d83503bad3cdef076736332d6 100644 (file)
@@ -1,7 +1,6 @@
-/* eslint-env mocha */
 'use strict';
 
-const assert = require('assert');
+const assert = require('node:assert');
 const { OTPHTML } = require('../../../lib/template');
 const lintHtml = require('../../lint-html');
 
@@ -22,16 +21,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);
   });