You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
251 B
Go
19 lines
251 B
Go
2 years ago
|
package operation
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"gotest.tools/assert"
|
||
|
)
|
||
|
|
||
|
func TestBuild(t *testing.T) {
|
||
|
op, err := Build("categorize", map[string]any{
|
||
|
"key": "tags",
|
||
|
})
|
||
|
|
||
|
assert.NilError(t, err)
|
||
|
assert.DeepEqual(t, op, &Categorize{
|
||
|
Key: "tags",
|
||
|
})
|
||
|
}
|