mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-24 08:41:33 +00:00
18 lines
263 B
Go
18 lines
263 B
Go
|
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)
|
||
|
}
|