Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodlenet
MoodleNet Backend
Commits
0d2a1ead
Commit
0d2a1ead
authored
May 30, 2019
by
Karen Konou
Browse files
add a get user test
parent
e2c1d464
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/moodle_net_web/graphql/schema/user_schema_test.exs
View file @
0d2a1ead
...
...
@@ -251,6 +251,7 @@ defmodule MoodleNetWeb.GraphQL.UserSchemaTest do
name
summary
location
website
icon
primaryLanguage
}
...
...
@@ -270,6 +271,7 @@ defmodule MoodleNetWeb.GraphQL.UserSchemaTest do
assert
user
[
"name"
]
==
actor
.
name
[
"und"
]
assert
user
[
"summary"
]
==
actor
.
summary
[
"und"
]
assert
user
[
"location"
]
==
get_in
(
actor
,
[
:location
,
Access
.
at
(
0
),
:content
,
"und"
])
assert
user
[
"website"
]
==
get_in
(
actor
,
[
:attachment
,
Access
.
at
(
0
),
"value"
])
assert
user
[
"icon"
]
==
get_in
(
actor
,
[
:icon
,
Access
.
at
(
0
),
:url
,
Access
.
at
(
0
)])
assert
user
[
"primaryLanguage"
]
==
actor
[
"primary_language"
]
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment