Skip to content
Snippets Groups Projects
Commit 4cdb725e authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Merge branch 'dev' of...

Merge branch 'dev' of https://gitlab.liu.se/tddd96-grupp11/teknikattan-scoring-system into 86-fix-login-button
parents c2923317 75150123
No related branches found
No related tags found
1 merge request!72Fix login button
Pipeline #41353 passed with warnings
This commit is part of merge request !72. Comments created here will be created in the context of that merge request.
import { render } from '@testing-library/react'
import mockedAxios from 'axios'
import React from 'react'
import { act } from 'react-dom/test-utils'
import { Provider } from 'react-redux'
......@@ -7,6 +8,12 @@ import store from './store'
test('renders app', async () => {
await act(async () => {
const typeRes: any = {
data: { component_types: [], view_types: [], question_types: [], media_types: [] },
}
;(mockedAxios.get as jest.Mock).mockImplementation(() => {
return Promise.resolve(typeRes)
})
render(
<Provider store={store}>
<App />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment