migrate ResourceAuthenticator into here from separate package
[squeep-authentication-module] / test / lib / template / ia-html.js
index 0b2d649a87262a1c5dd402b976d6907c8a4faefb..aabb9ace64c7ab3de414af804c12ed993168edbd 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-env mocha */
 'use strict';
 
-const assert = require('assert');
+const assert = require('node:assert');
 const { IAHTML } = require('../../../lib/template');
 const lintHtml = require('../../lint-html');
 
@@ -19,16 +19,16 @@ describe('Template IAHTML', function () {
     };
   });
 
-  it('renders', function () {
+  it('renders', async function () {
     ctx.errors = ['an error', 'another error'];
     const result = IAHTML(ctx, options);
-    lintHtml(result);
+    await lintHtml(result);
     assert(result);
   });
 
-  it('covers empty error', function () {
+  it('covers empty error', async function () {
     const result = IAHTML(ctx, options);
-    lintHtml(result);
+    await lintHtml(result);
     assert(result);
   });