add accounts doctests

This commit is contained in:
2023-01-29 14:32:24 -05:00
parent 725df05521
commit 2cf705c46f
2 changed files with 143 additions and 64 deletions

View File

@ -10,6 +10,8 @@ defmodule Cannery.AccountsTest do
@moduletag :accounts_test
doctest Accounts, import: true
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_by_email("unknown@example.com")