summaryrefslogtreecommitdiffstats
path: root/resources/page/page_matcher_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/page/page_matcher_test.go')
-rw-r--r--resources/page/page_matcher_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/page/page_matcher_test.go b/resources/page/page_matcher_test.go
index ad35da43c..7f441d3ab 100644
--- a/resources/page/page_matcher_test.go
+++ b/resources/page/page_matcher_test.go
@@ -99,6 +99,7 @@ func TestPageMatcher(t *testing.T) {
Params: maps.Params{
"foo": "bar",
},
+ Fields: maps.Params{},
Target: PageMatcher{Path: "", Kind: "page", Lang: "", Environment: ""},
})
})
@@ -136,9 +137,10 @@ func TestDecodeCascadeConfig(t *testing.T) {
c.Assert(got.SourceStructure, qt.DeepEquals, []PageMatcherParamsConfig{
{
Params: maps.Params{"a": string("av")},
+ Fields: maps.Params{},
Target: PageMatcher{Kind: "page", Environment: "production"},
},
- {Params: maps.Params{"b": string("bv")}, Target: PageMatcher{Kind: "page"}},
+ {Params: maps.Params{"b": string("bv")}, Fields: maps.Params{}, Target: PageMatcher{Kind: "page"}},
})
got, err = DecodeCascadeConfig(loggers.NewDefault(), true, nil)