Merge branch 'v1.3-dev'
[websub-hub] / test / src / template / admin-overview-html.js
index 1e715d28dd686630bfdcd7de2797661dd91adacc..1f997827cddc59e604a86ff4bcf4e118751af55d 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-env mocha */
 'use strict';
 
-const assert = require('assert');
+const assert = require('node:assert');
 const template = require('../../../src/template/admin-overview-html');
 const Config = require('../../../config');
 const lintHtml = require('../../lint-html');
@@ -14,21 +14,21 @@ describe('Admin Overview HTML Template', function () {
     config = new Config('test');
   });
 
-  it('covers missing topics', function () {
+  it('covers missing topics', async function () {
     const result = template(ctx, config);
-    lintHtml(result);
+    await lintHtml(result);
     assert(result);
   });
-  it('covers single topic', function () {
+  it('covers single topic', async function () {
     ctx.topics = [{}];
     const result = template(ctx, config);
-    lintHtml(result);
+    await lintHtml(result);
     assert(result);
   });
-  it('covers plural topics', function () {
+  it('covers plural topics', async function () {
     ctx.topics = [{}, {}, {}];
     const result = template(ctx, config);
-    lintHtml(result);
+    await lintHtml(result);
     assert(result);
   });
 });