Skip to content
Permalink
5a6be2c734
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (16 sloc) 631 Bytes
import App from './App';
import {render, screen} from '@testing-library/react';
import {createStore, applyMiddleware, compose} from 'redux';
import reducers from './reducers';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
import {Provider} from 'react-redux';
import reduxThunk from 'redux-thunk';
test('renders learn react link', () => {
render(
<Provider store={createStore(reducers, composeEnhancers(applyMiddleware(reduxThunk)))}>
<App />
</Provider>,
);
const linkElement = screen.getByText(/WELCOME TO BORROW PLATFORM/i);
expect(linkElement).toBeInTheDocument();
});