2021-05-06 16:14:42 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { renderWithProvider } from '../../../../test/jest';
|
|
|
|
import SwapStepIcon from './swap-step-icon';
|
|
|
|
|
|
|
|
describe('SwapStepIcon', () => {
|
2021-07-30 13:35:30 +02:00
|
|
|
it('renders the component with step 1 by default', () => {
|
2021-05-06 16:14:42 +02:00
|
|
|
const { container } = renderWithProvider(<SwapStepIcon />);
|
|
|
|
expect(container).toMatchSnapshot();
|
|
|
|
});
|
2021-07-30 13:35:30 +02:00
|
|
|
|
|
|
|
it('renders the component with step 2', () => {
|
|
|
|
const { container } = renderWithProvider(<SwapStepIcon stepNumber={2} />);
|
|
|
|
expect(container).toMatchSnapshot();
|
|
|
|
});
|
2021-05-06 16:14:42 +02:00
|
|
|
});
|