ba92f30ed67c8367f35bee185dc9fbc3bda42a89
4 const assert
= require('assert');
5 const template
= require('../../../src/template/authorization-error-html');
6 const Config
= require('../../../config');
7 const StubLogger
= require('../../stub-logger');
8 const lint
= require('html-minifier-lint').lint
; // eslint-disable-line node/no-unpublished-require
10 const stubLogger
= new StubLogger();
12 function lintHtml(html
) {
13 const result
= lint(html
);
14 stubLogger
.debug('validHtml', '', { result
, html
});
18 describe('Authorization Error HTML Template', function () {
20 beforeEach(function () {
22 config
= new Config('test');
24 it('renders', function () {
25 const result
= template(ctx
, config
);
29 it('renders errors', function () {
32 errorDescriptions: ['something went wrong', 'another thing went wrong'],
34 const result
= template(ctx
, config
);
38 }); // Authorization Error HTML Template