Skip to content

Commit

Permalink
Updated tests to get is admin field
Browse files Browse the repository at this point in the history
  • Loading branch information
maykonmichel committed Mar 4, 2020
1 parent b1ee9ed commit f73e6df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/ez_coins_api_web/user_resolver_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ defmodule EzCoinsApiWeb.UserResolverTest do
"name" => user.name,
"email" => user.email,
"hired_at" => "#{user.hired_at}",
"resigned_at" => user.resigned_at
"resigned_at" => user.resigned_at,
"is_admin" => user.is_admin
}
end

Expand All @@ -43,6 +44,7 @@ defmodule EzCoinsApiWeb.UserResolverTest do
email
hired_at
resigned_at
is_admin
}
}
"""
Expand Down Expand Up @@ -73,6 +75,7 @@ defmodule EzCoinsApiWeb.UserResolverTest do
email
hired_at
resigned_at
is_admin
}
}
"""
Expand Down Expand Up @@ -105,6 +108,7 @@ defmodule EzCoinsApiWeb.UserResolverTest do
email
hired_at
resigned_at
is_admin
}
}
"""
Expand Down Expand Up @@ -142,6 +146,7 @@ defmodule EzCoinsApiWeb.UserResolverTest do
email
hired_at
resigned_at
is_admin
}
}
"""
Expand Down Expand Up @@ -176,6 +181,7 @@ defmodule EzCoinsApiWeb.UserResolverTest do
email
hired_at
resigned_at
is_admin
}
}
"""
Expand Down

0 comments on commit f73e6df

Please sign in to comment.