Merge pull request #578 from trheyi/main

Add utils package import and dump output in process_test.go
This commit is contained in:
Max 2024-02-15 14:41:26 +08:00 committed by GitHub
commit 9ff5c09203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/yaoapp/gou/process"
"github.com/yaoapp/kun/any"
"github.com/yaoapp/kun/utils"
"github.com/yaoapp/yao/test"
)
@ -19,6 +20,8 @@ func TestProcessPipes(t *testing.T) {
}
output, err := p.Exec()
utils.Dump(output)
res := any.Of(output).Map().MapStrAny.Dot()
assert.True(t, res.Has("global"))
assert.True(t, res.Has("input"))