From a1be3faf142d96971284b2a46a32c1a4b484ab8f Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 3 Mar 2026 09:29:13 -0500 Subject: [PATCH] Fix test helper. Update test case. --- filters/filters_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filters/filters_test.go b/filters/filters_test.go index 39366d8..103c584 100644 --- a/filters/filters_test.go +++ b/filters/filters_test.go @@ -42,7 +42,7 @@ func expectEqualGraphFilters(t *testing.T, got, want GraphFilter) { for i := range want.Graph { expectEqualGraphFilters(t, got.Graph[i], want.Graph[i]) } - // assert.Equal(t, want.Extensions, got.Extensions) + assert.Equal(t, want.Extensions, got.Extensions) } // Tests @@ -80,10 +80,10 @@ func TestMarshalJSON(t *testing.T) { name: "graph field only", filter: HeartwoodFilter{ Graph: []GraphFilter{ - {Kinds: []json.RawMessage{json.RawMessage(`"$event.kind"`)}}, + {Kinds: []json.RawMessage{json.RawMessage(`1`)}}, }, }, - expected: `{"graph":[{"kinds":["$event.kind"]}]}`, + expected: `{"graph":[{"kinds":[1]}]}`, }, { name: "legacy and graph present",