mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
16 lines
325 B
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))
|
|
}
|