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.
UserType fix part 2 (PalisadoesFoundation#1894)
* add tests * add tests * fix type and remove userType * remove userType * remove userType * fix type and userType * code cov * Fix async issue in Events.test.tsx * code cov for Users
- Loading branch information
1 parent
f810f9c
commit 2da9090
Showing
13 changed files
with
82 additions
and
72 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 |
---|---|---|
|
@@ -65,7 +65,6 @@ const MOCKS = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
{ | ||
_id: '64001660a711c62d5b4076a3', | ||
|
@@ -74,7 +73,6 @@ const MOCKS = [ | |
image: 'mockImage', | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
], | ||
}, | ||
|
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
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 |
---|---|---|
|
@@ -46,7 +46,6 @@ const createMemberMock = ( | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
], | ||
}, | ||
|
@@ -65,7 +64,6 @@ const createMemberMock = ( | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
}, | ||
], | ||
|
@@ -99,7 +97,6 @@ const createAdminMock = ( | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
}, | ||
], | ||
|
@@ -120,7 +117,6 @@ const createAdminMock = ( | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
lol: true, | ||
}, | ||
}, | ||
|
@@ -152,7 +148,6 @@ const createUserMock = ( | |
image: 'tempUrl', | ||
_id: '64001660a711c62d5b4076a2', | ||
email: '[email protected]', | ||
userType: 'SUPERADMIN', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -170,7 +165,6 @@ const createUserMock = ( | |
image: 'tempUrl', | ||
_id: '6402030dce8e8406b8f07b0e', | ||
email: '[email protected]', | ||
userType: 'USER', | ||
createdAt: '2023-03-03T14:24:13.084Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -279,7 +273,6 @@ const MOCKS: TestMock[] = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
], | ||
}, | ||
|
@@ -297,7 +290,6 @@ const MOCKS: TestMock[] = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
], | ||
}, | ||
|
@@ -325,7 +317,6 @@ const MOCKS: TestMock[] = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
], | ||
}, | ||
|
@@ -344,7 +335,6 @@ const MOCKS: TestMock[] = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
lol: true, | ||
}, | ||
], | ||
|
@@ -373,7 +363,6 @@ const MOCKS: TestMock[] = [ | |
image: 'tempUrl', | ||
_id: '64001660a711c62d5b4076a2', | ||
email: '[email protected]', | ||
userType: 'SUPERADMIN', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -391,7 +380,6 @@ const MOCKS: TestMock[] = [ | |
image: 'tempUrl', | ||
_id: '6402030dce8e8406b8f07b0e', | ||
email: '[email protected]', | ||
userType: 'USER', | ||
createdAt: '2023-03-03T14:24:13.084Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -437,7 +425,6 @@ const MOCKS: TestMock[] = [ | |
image: null, | ||
_id: '65378abd85008f171cf2990d', | ||
email: '[email protected]', | ||
userType: 'ADMIN', | ||
createdAt: '2023-04-13T04:53:17.742Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -612,7 +599,6 @@ describe('Organization People Page', () => { | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
]); | ||
|
||
|
@@ -630,7 +616,6 @@ describe('Organization People Page', () => { | |
image: 'tempUrl', | ||
_id: '64001660a711c62d5b4076a2', | ||
email: '[email protected]', | ||
userType: 'SUPERADMIN', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -648,7 +633,6 @@ describe('Organization People Page', () => { | |
image: 'tempUrl', | ||
_id: '6402030dce8e8406b8f07b0e', | ||
email: '[email protected]', | ||
userType: 'USER', | ||
createdAt: '2023-03-03T14:24:13.084Z', | ||
joinedOrganizations: [ | ||
{ | ||
|
@@ -668,7 +652,6 @@ describe('Organization People Page', () => { | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'USER', | ||
}, | ||
]); | ||
|
||
|
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 |
---|---|---|
|
@@ -33,7 +33,6 @@ const MOCKS = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
{ | ||
_id: '64001660a711c62d5b4076a3', | ||
|
@@ -42,7 +41,6 @@ const MOCKS = [ | |
image: 'mockImage', | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
], | ||
}, | ||
|
@@ -68,7 +66,6 @@ const MOCKS = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
], | ||
}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ const MOCKS = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
{ | ||
_id: '64001660a711c62d5b4076a3', | ||
|
@@ -43,7 +42,6 @@ const MOCKS = [ | |
image: 'mockImage', | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
], | ||
}, | ||
|
@@ -71,7 +69,6 @@ const MOCKS = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'Admin', | ||
}, | ||
], | ||
}, | ||
|
@@ -98,7 +95,6 @@ const MOCKS = [ | |
image: null, | ||
email: '[email protected]', | ||
createdAt: '2023-03-02T03:22:08.101Z', | ||
userType: 'User', | ||
}, | ||
], | ||
}, | ||
|
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
Oops, something went wrong.