-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#303): Update user graphql queries and mutations
- Loading branch information
Showing
6 changed files
with
279 additions
and
64 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
const curation = require('./curationMock'); | ||
const user = require('./userMock'); | ||
|
||
module.exports = { | ||
...curation | ||
...curation, | ||
...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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const mockUser = { | ||
surName: 'surName', | ||
alias: 'alias', | ||
displayName: 'displayName', | ||
email: 'gmail88@email.com', | ||
givenName: 'givenName', | ||
key: 'key' | ||
}; | ||
|
||
const mockDBUser = { | ||
_id: 'kas2344nlkla', | ||
...mockUser, | ||
lean: () => this, | ||
skip: () => this, | ||
limit: () => this | ||
}; | ||
|
||
module.exports = { | ||
mockUser, | ||
mockDBUser | ||
}; |
Oops, something went wrong.