github.com/defang-io/defang/src@v0.0.0-20240505002154-bdf411911834/pkg/http/put_test.go (about) 1 package http 2 3 import "testing" 4 5 func TestRemoveQueryParam(t *testing.T) { 6 url := "https://example.com/foo?bar=baz" 7 expected := "https://example.com/foo" 8 actual := RemoveQueryParam(url) 9 if actual != expected { 10 t.Errorf("expected %q, got %q", expected, actual) 11 } 12 }