Skip to content

Commit 3c2804b

Browse files
authored
Fix the API settings URL: remove the /my/ prefix (#1217)
1 parent 282894b commit 3c2804b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/download_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestDownloadWithoutToken(t *testing.T) {
2626
if assert.Error(t, err) {
2727
assert.Regexp(t, "Welcome to Exercism", err.Error())
2828
// It uses the default base API url to infer the host
29-
assert.Regexp(t, "exercism.org/my/settings", err.Error())
29+
assert.Regexp(t, "exercism.org/settings", err.Error())
3030
}
3131
}
3232

cmd/submit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestSubmitWithoutToken(t *testing.T) {
2828
err := runSubmit(cfg, pflag.NewFlagSet("fake", pflag.PanicOnError), []string{})
2929
if assert.Error(t, err) {
3030
assert.Regexp(t, "Welcome to Exercism", err.Error())
31-
assert.Regexp(t, "exercism.org/my/settings", err.Error())
31+
assert.Regexp(t, "exercism.org/settings", err.Error())
3232
}
3333
}
3434

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ func InferSiteURL(apiURL string) string {
130130

131131
// TokenURL provides a link to where the user can find their API token.
132132
func TokenURL(apiURL string) string {
133-
return fmt.Sprintf("%s%s", InferSiteURL(apiURL), "/my/settings/api_cli")
133+
return fmt.Sprintf("%s%s", InferSiteURL(apiURL), "/settings/api_cli")
134134
}

0 commit comments

Comments
 (0)