diff --git a/frontend/src/queries/nodes/InsightQuery/utils/filtersToQueryNode.test.ts b/frontend/src/queries/nodes/InsightQuery/utils/filtersToQueryNode.test.ts index 8a41502119d49..6c92792b37412 100644 --- a/frontend/src/queries/nodes/InsightQuery/utils/filtersToQueryNode.test.ts +++ b/frontend/src/queries/nodes/InsightQuery/utils/filtersToQueryNode.test.ts @@ -167,9 +167,7 @@ describe('filtersToQueryNode', () => { const query: InsightQueryNode = { kind: NodeKind.RetentionQuery, filterTestAccounts: true, - retentionFilter: {}, - } - result.retentionFilter = {} // Put this here to make TS happy + } as InsightQueryNode expect(result).toEqual(query) }) @@ -198,7 +196,6 @@ describe('filtersToQueryNode', () => { const query: InsightQueryNode = { kind: NodeKind.RetentionQuery, - retentionFilter: {}, properties: { type: FilterLogicalOperator.And, values: [ @@ -215,8 +212,7 @@ describe('filtersToQueryNode', () => { }, ], }, - } - result.retentionFilter = {} // Put this here to make TS happy + } as InsightQueryNode expect(result).toEqual(query) }) @@ -231,13 +227,11 @@ describe('filtersToQueryNode', () => { const query: InsightQueryNode = { kind: NodeKind.RetentionQuery, - retentionFilter: {}, dateRange: { date_to: '2021-12-08', date_from: '2021-12-08', }, - } - result.retentionFilter = {} // Put this here to make TS happy + } as InsightQueryNode expect(result).toEqual(query) }) }) diff --git a/posthog/hogql/test/test_property.py b/posthog/hogql/test/test_property.py index 4dfb938b5b4ca..52e57d9c61c76 100644 --- a/posthog/hogql/test/test_property.py +++ b/posthog/hogql/test/test_property.py @@ -630,7 +630,7 @@ def test_entity_to_expr_events_type_without_id(self): self.assertEqual(result, ast.Constant(value=True)) def test_entity_to_expr_default_case(self): - entity = RetentionEntity(**{"type": "other_type"}) + entity = RetentionEntity() result = entity_to_expr(entity, default_event="default_event") expected = ast.CompareOperation( op=ast.CompareOperationOp.Eq,