Skip to content

Commit

Permalink
fix: Make value optional for unknown feature. (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion authored Oct 15, 2024
1 parent d5fdcb0 commit e656904
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdktests/client_side_events_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,11 @@ func doClientSideSummaryPrereqUnknownFlagTest(t *ldtest.T) {
m.JSONOptProperty("default").Should(m.BeNil()),
m.MapIncluding(
m.KV("counters", m.ItemsInAnyOrder(
unknownFlagCounter(ldvalue.Null(), 1),
m.AllOf(
JSONPropertyNullOrAbsent("value"),
m.JSONProperty("unknown").Should(m.JSONEqual(true)),
m.JSONProperty("count").Should(m.JSONEqual(1)),
),
)),
m.KV("contextKinds", anyContextKindsList()),
),
Expand Down

0 comments on commit e656904

Please sign in to comment.