src/app/components/Ad/MPU/index.test.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { render } from '../../react-testing-library-with-providers';
import MPU from '.';

const toggles = {
  ads: {
    enabled: true,
  },
};

describe('MPU', () => {
  it('should render without gel margins at all breakpoints and gel padding at smaller breakpoints', async () => {
    const { container } = render(
      <BrowserRouter>
        <MPU />
      </BrowserRouter>,
      { toggles, showAdsBasedOnLocation: true },
    );

    expect(container).toMatchSnapshot();
  });
});