forked from PalisadoesFoundation/talawa-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set fetchPolicy to network only in chechAuth and used localStorage
- Loading branch information
1 parent
9773f47
commit c9e1aca
Showing
5 changed files
with
31 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ import { StaticMockLink } from 'utils/StaticMockLink'; | |
import UserNavbar from './UserNavbar'; | ||
import userEvent from '@testing-library/user-event'; | ||
import { REVOKE_REFRESH_TOKEN } from 'GraphQl/Mutations/mutations'; | ||
import { CHECK_AUTH } from 'GraphQl/Queries/Queries'; | ||
|
||
async function wait(ms = 100): Promise<void> { | ||
await act(() => { | ||
|
@@ -29,23 +28,6 @@ const MOCKS = [ | |
}, | ||
result: {}, | ||
}, | ||
{ | ||
request: { | ||
query: CHECK_AUTH, | ||
}, | ||
result: { | ||
data: { | ||
checkAuth: { | ||
_id: '123', | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
image: 'https://example.com/profile.jpg', | ||
email: '[email protected]', | ||
userType: 'user', | ||
}, | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
const link = new StaticMockLink(MOCKS, true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters