From afbea415e3bddd856e28525f2d12a32e40b7442b Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Mon, 25 Oct 2021 22:38:59 +0000 Subject: [PATCH] =?UTF-8?q?Maint:=20replace=20=E2=9D=8E=20with=20=E2=9D=8C?= =?UTF-8?q?=20for=20markdown=20generated=20tables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/models/markdown.go | 2 +- internal/models/markdown_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/models/markdown.go b/internal/models/markdown.go index 201595ce..71e852dc 100644 --- a/internal/models/markdown.go +++ b/internal/models/markdown.go @@ -9,7 +9,7 @@ func boolToMarkdown(b bool) string { if b { return "✅" } - return "❎" + return "❌" } func markdownTableHeading(legendFields ...string) (markdown string) { diff --git a/internal/models/markdown_test.go b/internal/models/markdown_test.go index 5f8ceafd..27f7cc67 100644 --- a/internal/models/markdown_test.go +++ b/internal/models/markdown_test.go @@ -19,8 +19,8 @@ func Test_CyberghostServers_ToMarkdown(t *testing.T) { markdown := servers.ToMarkdown() const expected = "| Country | Hostname | TCP | UDP |\n" + "| --- | --- | --- | --- |\n" + - "| a | `xa` | ❎ | ✅ |\n" + - "| b | `xb` | ✅ | ❎ |\n" + "| a | `xa` | ❌ | ✅ |\n" + + "| b | `xb` | ✅ | ❌ |\n" assert.Equal(t, expected, markdown) } @@ -38,8 +38,8 @@ func Test_FastestvpnServers_ToMarkdown(t *testing.T) { markdown := servers.ToMarkdown() const expected = "| Country | Hostname | TCP | UDP |\n" + "| --- | --- | --- | --- |\n" + - "| a | `xa` | ✅ | ❎ |\n" + - "| b | `xb` | ❎ | ✅ |\n" + "| a | `xa` | ✅ | ❌ |\n" + + "| b | `xb` | ❌ | ✅ |\n" assert.Equal(t, expected, markdown) }