import { Document } from 'nodom' import buildElementCreator from '@/elementCreator' import htmlRenderer from '@/htmlRenderer' describe('htmlRenderer', () => { const doc = new Document() const elementCreator = buildElementCreator(doc.createElement.bind(doc), '') const mathRenderer = jest.fn(math => math) const renderHtml = htmlRenderer({ elementCreator, mathRenderer }) describe('with SageMath\'s embedded TeX', () => { const math = '\\newcommand{\\Bold}[1]{\\mathbf{#1}}\\Bold{Z}' const data = `` it('returns
Lorem ipsum
' it('returns