X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Froot-html.js;h=6e1458fffab9206cf0efcbb5d70d06f9642dae8b;hb=refs%2Ftags%2Fv1.3.12;hp=36c7b44a5cacdcd4f1f7c2fccff7d8bfd8e3d847;hpb=3c547e314b79a31fb3f15412a47707a22dc3eefd;p=websub-hub diff --git a/test/src/template/root-html.js b/test/src/template/root-html.js index 36c7b44..6e1458f 100644 --- a/test/src/template/root-html.js +++ b/test/src/template/root-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/root-html'); const Config = require('../../../config'); const lintHtml = require('../../lint-html'); @@ -14,24 +14,24 @@ describe('Root HTML Template', function () { config = new Config('test'); }); - it('renders', function () { + it('renders', async function () { const result = template(ctx, config); - lintHtml(result); + await lintHtml(result); assert(result); }); - it('covers options', function () { + it('covers options', async function () { delete config.dingus.selfBaseUrl; const result = template(ctx, config); - lintHtml(result); + await lintHtml(result); assert(result); }); - it('covers options', function () { + it('covers options', async function () { config.adminContactHTML = '