Reinstate #4652 without url-related code

Remove code that changes remotes-loading code path, as mandated by #4756
This commit is contained in:
Anna Song
2022-08-26 16:29:41 -07:00
parent 14b7282ed8
commit f80cf9f433
21 changed files with 679 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package localizer //nolint:testpackage
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestUrlBase(t *testing.T) {
require.Equal(t, "repo", urlBase("https://github.com/org/repo"))
}
func TestUrlBaseTrailingSlash(t *testing.T) {
require.Equal(t, "repo", urlBase("github.com/org/repo//"))
}