A free and open-source block-based email template builder.
TypeScript amazonsesdeveloper-toolsemailemail-editoremail-marketingemail-templateemail-template-builderemailapiemailjshtml-email-editorno-codenocode-email-editoropen-source-email-buildersendgridtransactional-emailswysiwyg-email-editorwysiwyg-html-editor
/**
* @jest-environment node
*/
import { describe, expect, it } from '@jest/globals';
import renderToStaticMarkup from './renderToStaticMarkup';
describe('renderToStaticMarkup', () => {
it('renders into a string', () => {
const result = renderToStaticMarkup(
{
root: {
type: 'Container',
data: {
props: {
childrenIds: [],
},
},
},
},
{ rootBlockId: 'root' }
);
expect(result).toEqual('<!DOCTYPE html><html><body><div></div></body></html>');
});
});