Skip to content

Commit

Permalink
🧪 Fix emoji type test names
Browse files Browse the repository at this point in the history
The emoji type tests were incorrectly named. They were using parts of
the emoji selector test names.
  • Loading branch information
mikelorant committed Mar 4, 2024
1 parent 87d0dc0 commit 4ab8359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,15 +653,15 @@ func TestSave(t *testing.T) {
`),
},
{
name: "view_emojitype_below",
name: "view_emojitype_shortcode",
config: func(c *config.Config) { c.Commit.EmojiType = config.EmojiTypeShortcode },
data: heredoc.Doc(`
commit:
emojiType: shortcode
`),
},
{
name: "view_emojitype_above",
name: "view_emojitype_character",
config: func(c *config.Config) { c.Commit.EmojiType = config.EmojiTypeCharacter },
data: heredoc.Doc(`
commit:
Expand Down
4 changes: 2 additions & 2 deletions internal/config/emoji_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func TestUnmarshallYAMLEmojiType(t *testing.T) {
want config.EmojiType
}{
{name: "empty", input: "", want: config.EmojiTypeUnset},
{name: "below", input: "shortcode", want: config.EmojiTypeShortcode},
{name: "above", input: "character", want: config.EmojiTypeCharacter},
{name: "shortcode", input: "shortcode", want: config.EmojiTypeShortcode},
{name: "character", input: "character", want: config.EmojiTypeCharacter},
{name: "invalid", input: "invalid", want: config.EmojiTypeUnset},
}

Expand Down

0 comments on commit 4ab8359

Please sign in to comment.