Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonsuperf committed Mar 31, 2021
1 parent 0612e39 commit 1969efb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/header/Header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import store from '@/store/store';
import { Provider } from 'react-redux';
import Header from './Header';

const appStore = store();

describe('Header Component', () => {
beforeAll(() => {
render(<Header />);
render(
<Provider store={appStore}>
<Header />
</Provider>,
);
});

it('has title', () => {
Expand Down

0 comments on commit 1969efb

Please sign in to comment.