1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

move author name colouring code into its own file

This commit is contained in:
Jesse Duffield
2021-10-30 17:42:43 +11:00
parent b04b457246
commit 7561703e8d
3 changed files with 107 additions and 80 deletions

View File

@ -1,20 +0,0 @@
package presentation
import "testing"
func TestGetInitials(t *testing.T) {
for input, expectedOutput := range map[string]string{
"Jesse Duffield": "JD",
"Jesse Duffield Man": "JD",
"JesseDuffield": "Je",
"J": "J",
"六书六書": "六",
"書": "書",
"": "",
} {
output := getInitials(input)
if output != expectedOutput {
t.Errorf("Expected %s to be %s", output, expectedOutput)
}
}
}