1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/pages/swaps/loading-swaps-quotes/background-animation.test.js
2023-06-15 20:17:21 +02:00

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');
});
});