Skip to content

Commit 16a5c54

Browse files
fix: format test file to align map keys
Co-authored-by: matifali <10648092+matifali@users.noreply.github.com>
1 parent c89841b commit 16a5c54

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cli/gitauth/vscode_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func TestOverrideVSCodeConfigs(t *testing.T) {
4242
// Create existing settings with user preferences
4343
existingSettings := map[string]interface{}{
4444
"workbench.colorTheme": "Dracula",
45-
"editor.fontSize": 14,
46-
"editor.tabSize": 2,
47-
"files.autoSave": "onWindowChange",
45+
"editor.fontSize": 14,
46+
"editor.tabSize": 2,
47+
"files.autoSave": "onWindowChange",
4848
}
4949
data, err := json.MarshalIndent(existingSettings, "", "\t")
5050
require.NoError(t, err)
@@ -78,10 +78,10 @@ func TestOverrideVSCodeConfigs(t *testing.T) {
7878
fs := afero.NewMemMapFs()
7979
// Create existing settings that include Coder-specific settings with different values
8080
existingSettings := map[string]interface{}{
81-
"workbench.colorTheme": "Dark+",
82-
"git.useIntegratedAskPass": true, // This should be overridden to false
83-
"github.gitAuthentication": true, // This should be overridden to false
84-
"editor.wordWrap": "on",
81+
"workbench.colorTheme": "Dark+",
82+
"git.useIntegratedAskPass": true, // This should be overridden to false
83+
"github.gitAuthentication": true, // This should be overridden to false
84+
"editor.wordWrap": "on",
8585
"terminal.integrated.shell.linux": "/bin/bash",
8686
}
8787
data, err := json.MarshalIndent(existingSettings, "", "\t")
@@ -116,12 +116,12 @@ func TestOverrideVSCodeConfigs(t *testing.T) {
116116
// Test with complex existing settings to ensure valid JSON output
117117
existingSettings := map[string]interface{}{
118118
"workbench.colorCustomizations": map[string]interface{}{
119-
"editor.background": "#1e1e1e",
119+
"editor.background": "#1e1e1e",
120120
"sideBar.background": "#252526",
121121
},
122122
"extensions.recommendations": []string{"ms-python.python", "golang.go"},
123-
"git.useIntegratedAskPass": true,
124-
"editor.rulers": []int{80, 120},
123+
"git.useIntegratedAskPass": true,
124+
"editor.rulers": []int{80, 120},
125125
}
126126
data, err := json.MarshalIndent(existingSettings, "", "\t")
127127
require.NoError(t, err)

0 commit comments

Comments
 (0)