build(aio): capture and log errors and warnings when post-processing HTML

This commit is contained in:
Peter Bacon Darwin
2017-04-28 11:34:01 +01:00
committed by Matias Niemelä
parent 9945ce2259
commit 64335d3521
3 changed files with 38 additions and 5 deletions

View File

@ -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];
});