Skip to content

Commit

Permalink
try fix jest mock
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Jul 28, 2023
1 parent 9c5a14a commit b102c1b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 32 deletions.
50 changes: 25 additions & 25 deletions src/quo2/components/graph/wallet_graph/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@
{:accessibility-label :illustration
:style style/illustration}
[text/text "Illustration here"]]
[charts/line-chart
{:accessibility-label :line-chart
:height 96
:width (+ width 1)
:max-value max-value
:min-value 0
:adjust-to-width true
:data data
:area-chart true
:start-fill-color fill-color
:end-fill-color fill-color
:hide-data-points true
:hide-rules true
:hide-y-axis-text true
:x-axis-indices-height 100
:thickness 2
:color line-color
:y-axis-thickness 0
:x-axis-thickness 0
:initial-spacing 0
:end-spacing 0
:disable-scroll true
:y-axis-label-width 0.01
:labels-extra-height -36
:x-axis-label-text-style style/x-axis-label-text-style}])]))
[rn/view {:accessibility-label :line-chart}
[charts/line-chart
{:height 96
:width (+ width 1)
:max-value max-value
:min-value 0
:adjust-to-width true
:data data
:area-chart true
:start-fill-color fill-color
:end-fill-color fill-color
:hide-data-points true
:hide-rules true
:hide-y-axis-text true
:x-axis-indices-height 100
:thickness 2
:color line-color
:y-axis-thickness 0
:x-axis-thickness 0
:initial-spacing 0
:end-spacing 0
:disable-scroll true
:y-axis-label-width 0.01
:labels-extra-height -36
:x-axis-label-text-style style/x-axis-label-text-style}]])]))

(def wallet-graph (theme/with-theme wallet-graph-internal))
7 changes: 0 additions & 7 deletions test/jest/jestSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ jest.mock('react-native-blob-util', () => ({

jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock'));

jest.mock('react-native-gifted-charts', () => ({
BarChart: {},
PieChart: {},
LineChart: {},
LineChartBicolor: {},
}));

NativeModules.ReactLocalization = {
language: 'en',
locale: 'en',
Expand Down

0 comments on commit b102c1b

Please sign in to comment.