Skip to content

Commit

Permalink
t.Fatal instead of panic in test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder committed Dec 5, 2023
1 parent 56d59e5 commit 833e5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/i18n/message_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
func TestMessageTemplate(t *testing.T) {
mt := NewMessageTemplate(&Message{ID: "HelloWorld", Other: "Hello World"})
if mt.PluralTemplates[plural.Other].Src != "Hello World" {
panic(mt.PluralTemplates)
t.Fatal(mt.PluralTemplates)
}
}

func TestNilMessageTemplate(t *testing.T) {
if mt := NewMessageTemplate(&Message{ID: "HelloWorld"}); mt != nil {
panic(mt)
t.Fatal(mt)
}
}

Expand Down

0 comments on commit 833e5ac

Please sign in to comment.