mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
fix issue in unit testing case for package gview
This commit is contained in:
@ -8,6 +8,7 @@ package gview_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/gogf/gf/v2/encoding/ghtml"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
@ -411,7 +412,7 @@ func Test_BuildInFuncDump(t *testing.T) {
|
||||
})
|
||||
r, err := v.ParseContent(context.TODO(), "{{dump .}}")
|
||||
t.Assert(err, nil)
|
||||
t.Assert(gstr.Contains(r, `"name": "john"`), true)
|
||||
t.Assert(gstr.Contains(r, `"name": "john"`), true)
|
||||
t.Assert(gstr.Contains(r, `"score": 100`), true)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user