Skip to content

Commit

Permalink
fix jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Nov 2, 2023
1 parent 14a558f commit 6171a81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/src/scenes/insights/InsightNav/insightNavLogic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ describe('insightNavLogic', () => {
{
event: '$pageview',
kind: 'EventsNode',
math: 'total',
name: '$pageview',
},
],
Expand Down Expand Up @@ -176,8 +177,14 @@ describe('insightNavLogic', () => {
},
}

it('is initialized with null', async () => {
await expectLogic(logic).toMatchValues({ queryPropertyCache: null })
it('is initialized on mount', async () => {
await expectLogic(logic).toMatchValues({
queryPropertyCache: {
...nodeKindToDefaultQuery[NodeKind.TrendsQuery],
commonFilter: {},
filterTestAccounts: true,
},
})
})

it('stores query updates', async () => {
Expand Down

0 comments on commit 6171a81

Please sign in to comment.