grafana/pkg/services/live/pushurl/values_test.go

16 lines
325 B
Go

package pushurl
import (
"net/url"
"testing"
"github.com/stretchr/testify/require"
)
func TestFrameFormatFromValues(t *testing.T) {
values := url.Values{}
require.Equal(t, "labels_column", FrameFormatFromValues(values))
values.Set(frameFormatParam, "wide")
require.Equal(t, "wide", FrameFormatFromValues(values))
}