diff options
author | Lauris BH <lauris@nix.lv> | 2022-06-15 18:05:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 23:05:32 +0800 |
commit | 1f8f9c3826643b8c3a0c3da1dc15090af736f5a6 (patch) | |
tree | 80e4dec4b1ac01f9bd41d27ae042ece6a14b0f1e /integrations | |
parent | 9f87b60b46b2d3c6c4518d772a0fdc935d454ae0 (diff) | |
download | gitea-1f8f9c3826643b8c3a0c3da1dc15090af736f5a6.tar.gz gitea-1f8f9c3826643b8c3a0c3da1dc15090af736f5a6.zip |
Remove tab/TabName usage where it's not needed (#19973)
`tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore.
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/links_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/integrations/links_test.go b/integrations/links_test.go index bc87ffad83..d0cf978f65 100644 --- a/integrations/links_test.go +++ b/integrations/links_test.go @@ -22,11 +22,11 @@ func TestLinksNoLogin(t *testing.T) { links := []string{ "/explore/repos", - "/explore/repos?q=test&tab=", + "/explore/repos?q=test", "/explore/users", - "/explore/users?q=test&tab=", + "/explore/users?q=test", "/explore/organizations", - "/explore/organizations?q=test&tab=", + "/explore/organizations?q=test", "/", "/user/sign_up", "/user/login", @@ -81,11 +81,11 @@ func TestNoLoginNotExist(t *testing.T) { func testLinksAsUser(userName string, t *testing.T) { links := []string{ "/explore/repos", - "/explore/repos?q=test&tab=", + "/explore/repos?q=test", "/explore/users", - "/explore/users?q=test&tab=", + "/explore/users?q=test", "/explore/organizations", - "/explore/organizations?q=test&tab=", + "/explore/organizations?q=test", "/", "/user/forgot_password", "/api/swagger", |