1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
metamask-extension/ui/pages/settings/experimental-tab/experimental-tab.test.js
2022-12-09 00:07:06 +05:30

23 lines
604 B
JavaScript

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', () => {
it('renders ExperimentalTab component without error', () => {
expect(() => {
render();
}).not.toThrow();
});
});