Skip to content

A free and open-source block-based email template builder.

644 B
Raw Blame
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();
  });
});