From 4e7b33bde3ac9caa3e677c634c106a8cb62b6683 Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 22 Oct 2021 13:14:48 +0800 Subject: [PATCH] fix issue in unit testing case for package gview --- os/gview/gview_unit_basic_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os/gview/gview_unit_basic_test.go b/os/gview/gview_unit_basic_test.go index 5433a73dd..8d937b0df 100644 --- a/os/gview/gview_unit_basic_test.go +++ b/os/gview/gview_unit_basic_test.go @@ -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) }) }