1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 09:32:51 +00:00

end point tests figured out

This commit is contained in:
2018-01-06 12:25:50 -06:00
parent 006a7e1fc2
commit 959c44b8f8
7 changed files with 68 additions and 12 deletions

View File

@@ -1,9 +1,11 @@
defmodule MyApp.Data.TestHelpers do
import MyApp.Data.User
alias MyApp.Guardian.Auth
@spec new_user() :: {:ok, map}
def new_user() do
upsert_user(%{"battle_net_id" => 1, "battletag" => "mgerb42", "access_token" => "test_token"})
|> Auth.Token.add_token_and_map_claims
end
@spec atom_key_to_string(map) :: map