Maint: replace ❎ with ❌ for markdown generated tables
This commit is contained in:
@@ -9,7 +9,7 @@ func boolToMarkdown(b bool) string {
|
|||||||
if b {
|
if b {
|
||||||
return "✅"
|
return "✅"
|
||||||
}
|
}
|
||||||
return "❎"
|
return "❌"
|
||||||
}
|
}
|
||||||
|
|
||||||
func markdownTableHeading(legendFields ...string) (markdown string) {
|
func markdownTableHeading(legendFields ...string) (markdown string) {
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ func Test_CyberghostServers_ToMarkdown(t *testing.T) {
|
|||||||
markdown := servers.ToMarkdown()
|
markdown := servers.ToMarkdown()
|
||||||
const expected = "| Country | Hostname | TCP | UDP |\n" +
|
const expected = "| Country | Hostname | TCP | UDP |\n" +
|
||||||
"| --- | --- | --- | --- |\n" +
|
"| --- | --- | --- | --- |\n" +
|
||||||
"| a | `xa` | ❎ | ✅ |\n" +
|
"| a | `xa` | ❌ | ✅ |\n" +
|
||||||
"| b | `xb` | ✅ | ❎ |\n"
|
"| b | `xb` | ✅ | ❌ |\n"
|
||||||
|
|
||||||
assert.Equal(t, expected, markdown)
|
assert.Equal(t, expected, markdown)
|
||||||
}
|
}
|
||||||
@@ -38,8 +38,8 @@ func Test_FastestvpnServers_ToMarkdown(t *testing.T) {
|
|||||||
markdown := servers.ToMarkdown()
|
markdown := servers.ToMarkdown()
|
||||||
const expected = "| Country | Hostname | TCP | UDP |\n" +
|
const expected = "| Country | Hostname | TCP | UDP |\n" +
|
||||||
"| --- | --- | --- | --- |\n" +
|
"| --- | --- | --- | --- |\n" +
|
||||||
"| a | `xa` | ✅ | ❎ |\n" +
|
"| a | `xa` | ✅ | ❌ |\n" +
|
||||||
"| b | `xb` | ❎ | ✅ |\n"
|
"| b | `xb` | ❌ | ✅ |\n"
|
||||||
|
|
||||||
assert.Equal(t, expected, markdown)
|
assert.Equal(t, expected, markdown)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user