2021-04-27 22:16:17 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
2021-04-28 21:53:59 +02:00
|
|
|
import { renderWithProvider } from '../../../../test/jest';
|
2021-04-27 22:16:17 +02:00
|
|
|
import BackgroundAnimation from './background-animation';
|
|
|
|
|
|
|
|
describe('BackgroundAnimation', () => {
|
|
|
|
it('renders the component', () => {
|
2023-06-15 20:17:21 +02:00
|
|
|
const { container, getByTestId } = renderWithProvider(
|
|
|
|
<BackgroundAnimation />,
|
|
|
|
);
|
|
|
|
expect(
|
|
|
|
getByTestId('loading-swaps-quotes-background-1'),
|
|
|
|
).toBeInTheDocument();
|
|
|
|
expect(
|
|
|
|
getByTestId('loading-swaps-quotes-background-2'),
|
|
|
|
).toBeInTheDocument();
|
2021-04-27 22:16:17 +02:00
|
|
|
expect(container.firstChild.firstChild.nodeName).toBe('svg');
|
|
|
|
});
|
|
|
|
});
|