Skip to content

Commit

Permalink
Remove unused component test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Jun 27, 2023
1 parent 8d4f427 commit 8c2d0e3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ exports[`NavbarBrowserTitle should render correctly 1`] = `
<Component
hostname="faucet.metamask.io"
https={true}
network={
Object {
"provider": Object {
"type": "mainnet",
},
}
}
/>
</ContextProvider>
`;
11 changes: 1 addition & 10 deletions app/components/UI/NavbarBrowserTitle/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,9 @@ const store = mockStore({});

describe('NavbarBrowserTitle', () => {
it('should render correctly', () => {
const network = {
provider: {
type: 'mainnet',
},
};
const wrapper = shallow(
<Provider store={store}>
<NavbarBrowserTitle
network={network}
hostname={'faucet.metamask.io'}
https
/>
<NavbarBrowserTitle hostname={'faucet.metamask.io'} https />
</Provider>,
);
expect(wrapper).toMatchSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ exports[`NavbarTitle should render correctly 1`] = `
}
>
<withNavigation(Connect(NavbarTitle))
network={
Object {
"provider": Object {
"type": "mainnet",
},
}
}
title="Test"
/>
</ContextProvider>
Expand Down
7 changes: 1 addition & 6 deletions app/components/UI/NavbarTitle/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ const store = mockStore({});
describe('NavbarTitle', () => {
it('should render correctly', () => {
const title = 'Test';
const network = {
provider: {
type: 'mainnet',
},
};
const wrapper = shallow(
<Provider store={store}>
<NavbarTitle title={title} network={network} />
<NavbarTitle title={title} />
</Provider>,
);
expect(wrapper).toMatchSnapshot();
Expand Down

0 comments on commit 8c2d0e3

Please sign in to comment.