2022-09-16 21:05:21 +02:00
|
|
|
import React from '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', () => {
|
2022-12-08 19:37:06 +01:00
|
|
|
it('renders ExperimentalTab component without error', () => {
|
|
|
|
expect(() => {
|
|
|
|
render();
|
|
|
|
}).not.toThrow();
|
2022-09-16 21:05:21 +02:00
|
|
|
});
|
|
|
|
});
|