projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change devDependency html linter to resolve audit issue, fix lint issues
[websub-hub]
/
test
/
src
/
template
/
root-html.js
diff --git
a/test/src/template/root-html.js
b/test/src/template/root-html.js
index f48cb0828dcb16488aaf36ed2f02f32d089eda75..6e1458fffab9206cf0efcbb5d70d06f9642dae8b 100644
(file)
--- a/
test/src/template/root-html.js
+++ b/
test/src/template/root-html.js
@@
-1,9
+1,10
@@
/* eslint-env mocha */
'use strict';
/* 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 template = require('../../../src/template/root-html');
const Config = require('../../../config');
+const lintHtml = require('../../lint-html');
describe('Root HTML Template', function () {
let ctx, config;
describe('Root HTML Template', function () {
let ctx, config;
@@
-13,21
+14,24
@@
describe('Root HTML Template', function () {
config = new Config('test');
});
config = new Config('test');
});
- it('renders', function () {
+ it('renders',
async
function () {
const result = template(ctx, config);
const result = template(ctx, config);
+ await lintHtml(result);
assert(result);
});
assert(result);
});
- it('covers options', function () {
+ it('covers options',
async
function () {
delete config.dingus.selfBaseUrl;
const result = template(ctx, config);
delete config.dingus.selfBaseUrl;
const result = template(ctx, config);
+ await lintHtml(result);
assert(result);
});
assert(result);
});
- it('covers options', function () {
+ it('covers options',
async
function () {
config.adminContactHTML = '<div>support</div>';
config.manager.publicHub = false;
const result = template(ctx, config);
config.adminContactHTML = '<div>support</div>';
config.manager.publicHub = false;
const result = template(ctx, config);
+ await lintHtml(result);
assert(result);
});
assert(result);
});