diff --git a/net/web/test/Profile.test.js b/net/web/test/Profile.test.js index 477a646f..f10b6681 100644 --- a/net/web/test/Profile.test.js +++ b/net/web/test/Profile.test.js @@ -3,11 +3,13 @@ import {render, act, screen, waitFor, fireEvent} from '@testing-library/react' import { ProfileContextProvider, ProfileContext } from 'context/ProfileContext'; import * as fetchUtil from 'api/fetchUtil'; +let profileContext = null; function ProfileView() { const profile = useContext(ProfileContext); + profileContext = profile; return ( -