Skip to content

Commit

Permalink
Fix feature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Feb 20, 2024
1 parent 2ff72b7 commit 12dfab0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/godogx/vars"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/swaggest/assertjson"
)

// Context is a test context for feature tests.
Expand All @@ -36,7 +37,9 @@ func newContext(t *testing.T) *Context {
t.Helper()

vs := &vars.Steps{}

vs.JSONComparer.Vars = &shared.Vars{}
vs.JSONComparer.IgnoreDiff = assertjson.IgnoreDiff

tc := &Context{}
tc.Local = httpsteps.NewLocalClient("", func(client *httpmock.Client) {
Expand Down

0 comments on commit 12dfab0

Please sign in to comment.