mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
6e13524bcd
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com> Co-authored-by: Brad Decker <bhdecker84@gmail.com> Co-authored-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
23 lines
718 B
JavaScript
23 lines
718 B
JavaScript
import React from 'react';
|
|
import { screen } from '@testing-library/react';
|
|
import { renderWithProvider } from '../../../../test/jest';
|
|
import configureStore from '../../../store/store';
|
|
import mockState from '../../../../test/data/mock-state.json';
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
const render = () => {
|
|
const store = configureStore({
|
|
metamask: {
|
|
...mockState.metamask,
|
|
},
|
|
});
|
|
return renderWithProvider(<ExperimentalTab />, store);
|
|
};
|
|
|
|
describe('ExperimentalTab', () => {
|
|
it('renders ExperimentalTab component and shows Enable enhanced gas fee UI text', () => {
|
|
render();
|
|
expect(screen.getByText('Enable enhanced gas fee UI')).toBeInTheDocument();
|
|
});
|
|
});
|