Skip to content

Commit

Permalink
a little even more lesserer
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 25, 2024
1 parent 2ed1f38 commit aa42fda
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expectLogic } from 'kea-test-utils'
import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic'

import { useMocks } from '~/mocks/jest'
import { NodeKind, TrendsQuery } from '~/queries/schema'
import { initKeaTests } from '~/test/init'
import { BaseMathType, ChartDisplayType, InsightShortId, PropertyMathType } from '~/types'
Expand All @@ -14,6 +15,17 @@ describe('insightsTableDataLogic', () => {

const props = { dashboardItemId: Insight123 }
beforeEach(() => {
useMocks({
post: {
'/api/projects/:team/query': [
200,
{
results: [],
},
],
},
})

initKeaTests()
logic = insightsTableDataLogic(props)
logic.mount()
Expand Down

0 comments on commit aa42fda

Please sign in to comment.