build(aio): capture and log errors and warnings when post-processing HTML
This commit is contained in:

committed by
Matias Niemelä

parent
9945ce2259
commit
64335d3521
@ -1,11 +1,14 @@
|
||||
const processorFactory = require('../../post-process-package/processors/post-process-html');
|
||||
var testPackage = require('../../helpers/test-package');
|
||||
var Dgeni = require('dgeni');
|
||||
const plugin = require('./autolink-headings');
|
||||
|
||||
describe('autolink-headings postprocessor', () => {
|
||||
let processor;
|
||||
|
||||
beforeEach(() => {
|
||||
processor = processorFactory();
|
||||
const dgeni = new Dgeni([testPackage('angular-base-package')]);
|
||||
const injector = dgeni.configureInjector();
|
||||
processor = injector.get('postProcessHtml');
|
||||
processor.docTypes = ['a'];
|
||||
processor.plugins = [plugin];
|
||||
});
|
||||
|
Reference in New Issue
Block a user