19 lines
438 B
JavaScript
19 lines
438 B
JavaScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
import { Provider } from 'react-redux';
|
|
import { store } from './app/store';
|
|
import App from './App';
|
|
|
|
test('renders text', () => {
|
|
const { getByText } = render(
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>
|
|
);
|
|
|
|
expect(getByText(/Stuff/)).toBeInTheDocument();
|
|
});
|
|
|
|
test('store is not empty or falsy', () => {
|
|
expect(store).not.toBeNull();
|
|
}) |