storj/satellite/payments/coinpayments/urls_test.go
Yaroslav Vorobiov bb1e86c790 satellite: remove unused coinpayments code and chores
issue: https://github.com/storj/storj/issues/4824

Change-Id: I2e3e63151d1def96270279719f6eceda0acba66c
2022-11-30 16:24:48 +00:00

26 lines
492 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package coinpayments_test
import (
"net/url"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"storj.io/storj/satellite/payments/coinpayments"
)
func TestGetCheckoutURL(t *testing.T) {
expected := "example"
link := coinpayments.GetCheckoutURL(expected, "id")
u, err := url.Parse(link)
require.NoError(t, err)
assert.Equal(t, expected, u.Query().Get("key"))
}