mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
20 lines
588 B
JavaScript
20 lines
588 B
JavaScript
import React from 'react';
|
|
|
|
import { renderWithProvider } from '../../../../test/jest';
|
|
import BackgroundAnimation from './background-animation';
|
|
|
|
describe('BackgroundAnimation', () => {
|
|
it('renders the component', () => {
|
|
const { container, getByTestId } = renderWithProvider(
|
|
<BackgroundAnimation />,
|
|
);
|
|
expect(
|
|
getByTestId('loading-swaps-quotes-background-1'),
|
|
).toBeInTheDocument();
|
|
expect(
|
|
getByTestId('loading-swaps-quotes-background-2'),
|
|
).toBeInTheDocument();
|
|
expect(container.firstChild.firstChild.nodeName).toBe('svg');
|
|
});
|
|
});
|