From 4ab8359ca745f0bf5fcbb7c4ab61cec02aec310b Mon Sep 17 00:00:00 2001 From: Michael Lorant Date: Sun, 3 Mar 2024 19:52:51 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Fix=20emoji=20type=20test=20name?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The emoji type tests were incorrectly named. They were using parts of the emoji selector test names. --- internal/config/config_test.go | 4 ++-- internal/config/emoji_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 1027d0f..68d366d 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -653,7 +653,7 @@ 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: @@ -661,7 +661,7 @@ func TestSave(t *testing.T) { `), }, { - name: "view_emojitype_above", + name: "view_emojitype_character", config: func(c *config.Config) { c.Commit.EmojiType = config.EmojiTypeCharacter }, data: heredoc.Doc(` commit: diff --git a/internal/config/emoji_test.go b/internal/config/emoji_test.go index 4edf058..a7cb7bd 100644 --- a/internal/config/emoji_test.go +++ b/internal/config/emoji_test.go @@ -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}, }