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
import React from 'react';
import { describe, expect, it } from '@jest/globals';
import { render } from '@testing-library/react';
import { Divider } from '.';
describe('Divider', () => {
it('renders with default values', () => {
expect(render(<Divider />).asFragment()).toMatchSnapshot();
});
it('renders with props', () => {
expect(
render(
<Divider
style={{
padding: { top: 1, left: 2, bottom: 3, right: 4 },
backgroundColor: '#fff000',
}}
props={{ lineColor: '#444222', lineHeight: 10 }}
/>
).asFragment()
).toMatchSnapshot();
});
});