Skip to content

Commit

Permalink
Fix more typos (#736)
Browse files Browse the repository at this point in the history
Found via `codespell -S deps -L feld`
  • Loading branch information
kianmeng committed Dec 18, 2022
1 parent c0c6450 commit 8932d21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 1.8.3

**potential breaking change, fixing an unexpected behaivour**
**potential breaking change, fixing an unexpected behaviour**
- Make return type of deliver\_many consistent @princemaple (#733)

### 📝 Documentation
Expand Down
8 changes: 4 additions & 4 deletions test/swoosh/email/recipient_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Swoosh.Email.RecipientTest do
defstruct [:name, :email]
end

defmodule Villian do
defmodule Villain do
@derive {Recipient, address: :email}
defstruct [:we_dont_care_about_their_names, :email]
end
Expand All @@ -29,8 +29,8 @@ defmodule Swoosh.Email.RecipientTest do
end

test "derive address only" do
assert Recipient.format(%Villian{
we_dont_care_about_their_names: "Random Villian",
assert Recipient.format(%Villain{
we_dont_care_about_their_names: "Random Villain",
email: "random@villain.me"
}) == {"", "random@villain.me"}
end
Expand Down Expand Up @@ -87,7 +87,7 @@ defmodule Swoosh.Email.RecipientTest do
new()
|> subject("Peace, love, not war")
|> from(%Avenger{name: "Admin", email: "admin@avengers.org"})
|> to(%Villian{email: "random@villain.me", we_dont_care_about_their_names: "Random"})
|> to(%Villain{email: "random@villain.me", we_dont_care_about_their_names: "Random"})
|> cc("ironman@avengers.org")
|> cc({"Thor", "thor@avengers.org"})
|> bcc({nil, "thanos@villain.me"})
Expand Down

0 comments on commit 8932d21

Please sign in to comment.