diff options
author | Simponic <loganhunt@simponic.xyz> | 2023-02-01 14:57:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 14:57:14 -0700 |
commit | fe5f5b77fcc3ef24516866561f9b54ac07663ad6 (patch) | |
tree | ba63998ec306983d87594195d60ecb0abb6ea5d1 /test/schema/register_test.exs | |
parent | 324d041d5c5cbcdf0083dcd802144a57443789f6 (diff) | |
download | chessh-fe5f5b77fcc3ef24516866561f9b54ac07663ad6.tar.gz chessh-fe5f5b77fcc3ef24516866561f9b54ac07663ad6.zip |
Discord notifs (#14)
* Add role id to config
* Add discord notifications for games
* Fix discord discriminant tests
Diffstat (limited to 'test/schema/register_test.exs')
-rw-r--r-- | test/schema/register_test.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/schema/register_test.exs b/test/schema/register_test.exs index 6d32769..40dc210 100644 --- a/test/schema/register_test.exs +++ b/test/schema/register_test.exs @@ -3,10 +3,10 @@ defmodule Chessh.Auth.UserRegistrationTest do use ExUnit.Case alias Chessh.{Player, Repo} - @valid_user %{username: "logan", password: "password", discord_id: "4"} + @valid_user %{username: "lizzy#0003", password: "password", discord_id: "4"} @invalid_username %{username: "a", password: "password", discord_id: "7"} - @invalid_password %{username: "aasdf", password: "pass", discord_id: "6"} - @repeated_username %{username: "LoGan", password: "password", discord_id: "5"} + @invalid_password %{username: "bruh#0003", password: "pass", discord_id: "6"} + @repeated_username %{username: "lizzy#0003", password: "password", discord_id: "6"} test "Password must be at least 8 characters and username must be at least 2" do refute Player.registration_changeset(%Player{}, @invalid_password).valid? @@ -40,7 +40,7 @@ defmodule Chessh.Auth.UserRegistrationTest do refute changeset.changes.hashed_password == @valid_user.password end - test "Username is uniquely case insensitive" do + test "Username is uniquely case sensitive" do assert Repo.insert(Player.registration_changeset(%Player{}, @valid_user)) assert {:error, |