zitadel/internal/query/query_test.go

18 lines
263 B
Go
Raw Normal View History

package query
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_cleanStaticQueries(t *testing.T) {
query := `select
foo,
bar
from table;`
want := "select foo, bar from table;"
cleanStaticQueries(&query)
assert.Equal(t, want, query)
}