You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/config/config_file_test.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -110,14 +110,14 @@ github.com:
110
110
_, err:=ParseConfig("config.yml")
111
111
assert.Nil(t, err)
112
112
113
-
expectedMain:="# What protocol to use when performing git operations. Supported values: ssh, https\ngit_protocol: https\n# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.\neditor:\n# When to interactively prompt. This is a global config that cannot be overriden by hostname. Supported values: enabled, disabled\nprompt: enabled\n# Aliases allow you to create nicknames for gh commands\naliases:\n co: pr checkout\n"
expected:="# What protocol to use when performing git operations. Supported values: ssh, https\ngit_protocol: https\n# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.\neditor: nano\n# When to interactively prompt. This is a global config that cannot be overriden by hostname. Supported values: enabled, disabled\nprompt: enabled\n# Aliases allow you to create nicknames for gh commands\naliases:\n co: pr checkout\n"
expected:="# What protocol to use when performing git operations. Supported values: ssh, https\ngit_protocol: https\n# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.\neditor:\n# When to interactively prompt. This is a global config that cannot be overriden by hostname. Supported values: enabled, disabled\nprompt: enabled\n# Aliases allow you to create nicknames for gh commands\naliases:\n co: pr checkout\n"
41
+
expected:=heredoc.Doc(`
42
+
# What protocol to use when performing git operations. Supported values: ssh, https
43
+
git_protocol: https
44
+
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
45
+
editor:
46
+
# When to interactively prompt. This is a global config that cannot be overriden by hostname. Supported values: enabled, disabled
47
+
prompt: enabled
48
+
# A pager program to send command output to. Example value: less
49
+
pager:
50
+
# Aliases allow you to create nicknames for gh commands
0 commit comments