import React from 'react'; import mockState from '../../../../test/data/mock-state.json'; import { renderWithProvider } from '../../../../test/lib/render-helpers'; import configureStore from '../../../store/store'; import MultilayerFeeMessage from './multi-layer-fee-message'; jest.mock('../../../helpers/utils/optimism/fetchEstimatedL1Fee', () => '0x5'); describe('Multi layer fee message', () => { const store = configureStore(mockState); it('should match snapshot', () => { const { container } = renderWithProvider( , store, ); expect(container).toMatchSnapshot(); }); it('should containe fee values', () => { const { getByText } = renderWithProvider( , store, ); expect(getByText('Layer 1 fees')).toBeInTheDocument(); expect(getByText('Amount + fees')).toBeInTheDocument(); expect(getByText('0.001000021000 ETH')).toBeInTheDocument(); }); });