This commit is contained in:
Ian Sanders
2024-05-14 15:07:31 -04:00
parent 3b2b8dacd8
commit e26dea6416

View File

@@ -203,7 +203,7 @@ describe('mermaidAPI', () => {
const base64encodedSrc = toBase64( const base64encodedSrc = toBase64(
'<body style="' + 'margin:0' + '">' + inputSvgCode + '</body>' '<body style="' + 'margin:0' + '">' + inputSvgCode + '</body>'
); );
const expectedSrc = 'src="data:text/html;charset=UTF-8;base64,' + base64encodedSrc + '"' const expectedSrc = 'src="data:text/html;charset=UTF-8;base64,' + base64encodedSrc + '"';
const result = putIntoIFrame(inputSvgCode); const result = putIntoIFrame(inputSvgCode);
expect(result).toContain(expectedSrc); expect(result).toContain(expectedSrc);