X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Flint-html.js;h=a75080836c2105e6b1be1c3db0cec25c70d28ee7;hb=b806715f9288323cce7b0ab437ee78b01d26c548;hp=4b5cd4757f0123d7f5968aae7798b3111879d754;hpb=3c547e314b79a31fb3f15412a47707a22dc3eefd;p=websub-hub diff --git a/test/lint-html.js b/test/lint-html.js index 4b5cd47..a750808 100644 --- a/test/lint-html.js +++ b/test/lint-html.js @@ -1,13 +1,9 @@ 'use strict'; -const assert = require('assert'); +const { makeHtmlLint } = require('@squeep/html-template-helper'); +const { HtmlValidate } = require('html-validate'); const stubLogger = require('./stub-logger'); -const { lint } = require('html-minifier-lint'); // eslint-disable-line node/no-unpublished-require - -function lintHtml(html) { - const result = lint(html); - stubLogger.debug('lintHtml', '', { result, html }); - assert(!result); -} +const htmlValidate = new HtmlValidate(); +const lintHtml = makeHtmlLint(stubLogger, htmlValidate); module.exports = lintHtml;