X-Git-Url: http://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=test%2Flint-html.js;fp=test%2Flint-html.js;h=70e336136dfab4f6fd055ea63974060f75fb83fe;hp=4b5cd4757f0123d7f5968aae7798b3111879d754;hb=53ef948ea83106e82d55e60d6695a15e94bf725e;hpb=842a3da269de1ab82e9a2a12aae8ed5677f064d8 diff --git a/test/lint-html.js b/test/lint-html.js index 4b5cd47..70e3361 100644 --- a/test/lint-html.js +++ b/test/lint-html.js @@ -1,13 +1,7 @@ '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); -} - -module.exports = lintHtml; +const htmlValidate = new HtmlValidate(); +const lintHtml = makeHtmlLint(stubLogger, htmlValidate); +module.exports = lintHtml; \ No newline at end of file