style(aio): fix docs linting issues (#19702)

These issues appeared after upgrade of eslint jasmine plugin

PR Close #19702
This commit is contained in:
Peter Bacon Darwin
2017-10-25 15:02:01 +01:00
committed by Matias Niemelä
parent e9afc59a81
commit 9ab1f4a9c9
5 changed files with 7 additions and 5 deletions

View File

@ -55,7 +55,7 @@ describe('addImageDimensions post-processor', () => {
docType: 'a',
renderedContent: '<img attr="value">'
})]);
expect(log.warn).toHaveBeenCalled();
expect(log.warn).toHaveBeenCalledWith('Missing src in image tag `<img attr="value">` - doc (a) ');
});
it('should fail for images whose source cannot be loaded', () => {
@ -69,7 +69,7 @@ describe('addImageDimensions post-processor', () => {
renderedContent: '<img src="missing">'
}];
expect(() => processor.$process(docs)).toThrowError('Unable to load src in image tag `<img src="missing">` - doc (a) ');
expect(getImageDimensionsSpy).toHaveBeenCalled();
expect(getImageDimensionsSpy).toHaveBeenCalledWith('base/path', 'missing');
});
it('should ignore images with width or height attributes', () => {