Add utils package import and dump output in process_test.go
This commit is contained in:
parent
67090b0e31
commit
063568828b
1 changed files with 3 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue