X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Fadmin-overview-html.js;h=1f997827cddc59e604a86ff4bcf4e118751af55d;hb=HEAD;hp=1e715d28dd686630bfdcd7de2797661dd91adacc;hpb=3bc885c4b6ef8e5ced2ee9708194523a41ebfe7a;p=websub-hub diff --git a/test/src/template/admin-overview-html.js b/test/src/template/admin-overview-html.js index 1e715d2..1f99782 100644 --- a/test/src/template/admin-overview-html.js +++ b/test/src/template/admin-overview-html.js @@ -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); }); });