diff --git a/test/unit/marked-spec.js b/test/unit/marked-spec.js index 7e84949492..b0c730c68c 100644 --- a/test/unit/marked-spec.js +++ b/test/unit/marked-spec.js @@ -80,3 +80,14 @@ describe('changeDefaults', () => { expect(require('../../src/defaults').defaults.test).toBe(true); }); }); + +describe('inlineLexer', () => { + it('should send html to renderer.html', () => { + const renderer = new marked.Renderer(); + spyOn(renderer, 'html').and.callThrough(); + const md = 'HTML Image: MY IMAGE'; + marked(md, { renderer }); + + expect(renderer.html).toHaveBeenCalledWith('MY IMAGE'); + }); +});