1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/pages/swaps/awaiting-signatures/swap-step-icon.test.js

17 lines
520 B
JavaScript

import React from 'react';
import { renderWithProvider } from '../../../../test/jest';
import SwapStepIcon from './swap-step-icon';
describe('SwapStepIcon', () => {
it('renders the component with step 1 by default', () => {
const { container } = renderWithProvider(<SwapStepIcon />);
expect(container).toMatchSnapshot();
});
it('renders the component with step 2', () => {
const { container } = renderWithProvider(<SwapStepIcon stepNumber={2} />);
expect(container).toMatchSnapshot();
});
});