@capillarytech/creatives-library 8.0.26 → 8.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/containers/Cap/selectors.js +1 -2
  2. package/containers/Cap/tests/__snapshots__/index.test.js.snap +8 -0
  3. package/containers/Cap/tests/selectors.test.js +28 -0
  4. package/containers/LanguageProvider/tests/index.test.js +8 -30
  5. package/package.json +5 -8
  6. package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +5 -2
  7. package/tests/store.test.js +5 -4
  8. package/utils/ApiCaller.js +0 -12
  9. package/utils/test-utils.js +4 -8
  10. package/utils/tests/cdnTransformation.test.js +1 -1
  11. package/v2Components/CapDeviceContent/tests/index.test.js +5 -12
  12. package/v2Components/Ckeditor/tests/index.test.js +3 -15
  13. package/v2Components/FormBuilder/tests/index.test.js +3 -2
  14. package/v2Components/NavigationBar/tests/index.test.js +3 -2
  15. package/v2Components/NewCallTask/tests/index.test.js +3 -2
  16. package/v2Containers/Cap/index.js +0 -5
  17. package/v2Containers/Cap/tests/Cap.test.js +7 -16
  18. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +8 -0
  19. package/v2Containers/Cap/tests/selectors.test.js +26 -27
  20. package/v2Containers/CreativesContainer/index.js +1 -1
  21. package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +3 -2
  22. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +9 -9
  23. package/v2Containers/Email/tests/sagas.test.js +27 -23
  24. package/v2Containers/InApp/tests/index.test.js +3 -11
  25. package/v2Containers/InApp/tests/sagas.test.js +10 -13
  26. package/v2Containers/LanguageProvider/tests/index.test.js +11 -19
  27. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +90 -287
  28. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +58 -116
  29. package/v2Containers/Line/Container/ImageCarousel/tests/content.test.js +3 -2
  30. package/v2Containers/Line/Container/ImageCarousel/tests/index.test.js +3 -2
  31. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +396 -254
  32. package/v2Containers/Line/Container/Wrapper/tests/index.test.js +3 -11
  33. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +215 -395
  34. package/v2Containers/Line/Container/tests/index.test.js +4 -3
  35. package/v2Containers/MobilePush/Edit/index.js +7 -8
  36. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +133186 -146971
  37. package/v2Containers/Rcs/tests/index.test.js +4 -12
  38. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +169 -31
  39. package/v2Containers/SmsTrai/Create/tests/index.test.js +10 -15
  40. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1457 -817
  41. package/v2Containers/SmsTrai/Edit/tests/index.test.js +3 -14
  42. package/v2Containers/TagList/tests/TagList.test.js +3 -2
  43. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +20 -14
  44. package/v2Containers/TemplatesV2/index.js +55 -80
  45. package/v2Containers/TemplatesV2/tests/index.test.js +4 -3
  46. package/v2Containers/Viber/tests/index.test.js +3 -10
  47. package/v2Containers/Whatsapp/index.js +0 -1
  48. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +32562 -5611
  49. package/v2Containers/Whatsapp/tests/index.test.js +12 -31
  50. package/v2Containers/Zalo/tests/index.test.js +3 -11
@@ -161,6 +161,7 @@ exports[`line wrapper test/> should render line component new 1`] = `
161
161
  "creatives.components.TemplatePreview.smsFormatType": "Message has unicode characters",
162
162
  "creatives.components.TemplatePreview.smsIcon": "Sms Icon",
163
163
  "creatives.components.TemplatePreview.unicodeIconTooltip": "This message has unicode characters. This may affect the cost per message.",
164
+ "creatives.components.TestPage.header": "Looks like youas are lost!",
164
165
  "creatives.components.Toastr.header": "This is the Toastr component !",
165
166
  "creatives.components.ToastrMessage.close": "close",
166
167
  "creatives.components.ToastrMessage.header": "This is the ToastrMessage component !",
@@ -845,6 +846,9 @@ exports[`line wrapper test/> should render line component new 1`] = `
845
846
  "creatives.containers.Templates.wechatHeader": "WECHAT",
846
847
  "creatives.containers.Templates.yesText": "Yes",
847
848
  "creatives.containers.Templates.zipUploadFailed": "Failed to upload zip file",
849
+ "creatives.containers.Testv2.descriptionTestv2": "Description of Testv2",
850
+ "creatives.containers.Testv2.header": "This is Testv2 container !",
851
+ "creatives.containers.Testv2.testv2": "Testv2",
848
852
  "creatives.containers.View.descriptionView": "Description of View",
849
853
  "creatives.containers.View.header": "This is View container !",
850
854
  "creatives.containers.View.view": "View",
@@ -1851,6 +1855,10 @@ new message content.",
1851
1855
  "creatives.containersV2.TemplatesV2.viber": "Viber",
1852
1856
  "creatives.containersV2.TemplatesV2.wechat": "Wechat",
1853
1857
  "creatives.containersV2.TemplatesV2.whatsapp": "WhatsApp",
1858
+ "creatives.containersV2.TestPage.header": "Looks like youas are lost!",
1859
+ "creatives.containersV2.Testv2.descriptionTestv2": "Description of Testv2",
1860
+ "creatives.containersV2.Testv2.header": "This is Testv2 container !",
1861
+ "creatives.containersV2.Testv2.testv2": "Testv2",
1854
1862
  "creatives.containersV2.View.descriptionView": "Description of View",
1855
1863
  "creatives.containersV2.View.header": "This is View container !",
1856
1864
  "creatives.containersV2.View.view": "View",
@@ -2247,45 +2255,9 @@ new message content.",
2247
2255
  }
2248
2256
  store={
2249
2257
  Object {
2258
+ "asyncReducers": Object {},
2250
2259
  "dispatch": [Function],
2251
2260
  "getState": [Function],
2252
- "initialHistory": Object {
2253
- "action": "POP",
2254
- "block": [Function],
2255
- "createHref": [Function],
2256
- "go": [Function],
2257
- "goBack": [Function],
2258
- "goForward": [Function],
2259
- "length": 1,
2260
- "listen": [Function],
2261
- "location": Object {
2262
- "hash": "",
2263
- "pathname": "/",
2264
- "search": "",
2265
- "state": undefined,
2266
- },
2267
- "push": [Function],
2268
- "replace": [Function],
2269
- },
2270
- "initialReducer": Object {
2271
- "ASK_AIRA": [Function],
2272
- "FTP": [Function],
2273
- "app": [Function],
2274
- "beeEditor": [Function],
2275
- "cap": [Function],
2276
- "create": [Function],
2277
- "ebill": [Function],
2278
- "edit": [Function],
2279
- "email": [Function],
2280
- "facebookPreview": [Function],
2281
- "gallery": [Function],
2282
- "language": [Function],
2283
- "navigationConfig": [Function],
2284
- "tagList": [Function],
2285
- "templates": [Function],
2286
- },
2287
- "injectedReducers": Object {},
2288
- "injectedSagas": Object {},
2289
2261
  "replaceReducer": [Function],
2290
2262
  "runSaga": [Function],
2291
2263
  "subscribe": [Function],
@@ -3347,7 +3319,7 @@ new message content.",
3347
3319
  className="cap-header-v2 card-message-header"
3348
3320
  >
3349
3321
  <div
3350
- className="CapHeader__Flex-sc-1ipee5s-2 eyLhst cap-header-v2 card-message-header"
3322
+ className="cap-header-v2 card-message-header CapHeader__Flex-sc-1ipee5s-2 lkXfId"
3351
3323
  >
3352
3324
  <div
3353
3325
  className="title-desc-container"
@@ -3357,7 +3329,7 @@ new message content.",
3357
3329
  type="h3"
3358
3330
  >
3359
3331
  <div
3360
- className="CapHeading-vrvcag-0 gPVQCv cap-header-v2-title"
3332
+ className="cap-header-v2-title CapHeading-vrvcag-0 kolsfA"
3361
3333
  type="h3"
3362
3334
  >
3363
3335
  <span
@@ -3920,7 +3892,7 @@ new message content.",
3920
3892
  size="s"
3921
3893
  >
3922
3894
  <Icon
3923
- className="CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-info info-icon cap-tooltip-with-info"
3895
+ className="cap-icon-v2 cap-icon-v2-info info-icon cap-tooltip-with-info CapIcon__AntIcon-sc-52535-0 dAqpdr"
3924
3896
  component={[Function]}
3925
3897
  onMouseEnter={[Function]}
3926
3898
  onMouseLeave={[Function]}
@@ -3930,7 +3902,7 @@ new message content.",
3930
3902
  componentName="Icon"
3931
3903
  >
3932
3904
  <i
3933
- className="anticon CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-info info-icon cap-tooltip-with-info"
3905
+ className="anticon cap-icon-v2 cap-icon-v2-info info-icon cap-tooltip-with-info CapIcon__AntIcon-sc-52535-0 dAqpdr"
3934
3906
  onMouseEnter={[Function]}
3935
3907
  onMouseLeave={[Function]}
3936
3908
  size="s"
@@ -3973,7 +3945,7 @@ new message content.",
3973
3945
  </div>
3974
3946
  </CapHeader__Flex>
3975
3947
  </CapHeader>
3976
- <_Class
3948
+ <_class
3977
3949
  className="image-template-title"
3978
3950
  defaultValue="line_flex_new"
3979
3951
  errorMessage={false}
@@ -3990,16 +3962,13 @@ new message content.",
3990
3962
  labelPosition="top"
3991
3963
  >
3992
3964
  <div
3993
- className="ComponentWithLabelHOC__CapComponentStyled-sc-1qk6bpg-0 kOOkix component-with-label image-template-title"
3994
- errorMessage={false}
3995
- labelPosition="top"
3965
+ className="component-with-label image-template-title ComponentWithLabelHOC__CapComponentStyled-sc-1qk6bpg-0 hREhdh"
3996
3966
  >
3997
3967
  <ComponentWithLabelHOC__ComponentWithLabelWrapper
3998
3968
  labelPosition="top"
3999
3969
  >
4000
3970
  <div
4001
- className="ComponentWithLabelHOC__ComponentWithLabelWrapper-sc-1qk6bpg-1 jrdcWr"
4002
- labelPosition="top"
3971
+ className="ComponentWithLabelHOC__ComponentWithLabelWrapper-sc-1qk6bpg-1 evSAae"
4003
3972
  >
4004
3973
  <CapInput
4005
3974
  defaultValue="line_flex_new"
@@ -4046,8 +4015,8 @@ new message content.",
4046
4015
  </ComponentWithLabelHOC__ComponentWithLabelWrapper>
4047
4016
  </div>
4048
4017
  </ComponentWithLabelHOC__CapComponentStyled>
4049
- </_Class>
4050
- <_Class
4018
+ </_class>
4019
+ <_class
4051
4020
  className="title-textarea"
4052
4021
  errorMessage={false}
4053
4022
  inductiveText={
@@ -4075,43 +4044,45 @@ new message content.",
4075
4044
  labelPosition="top"
4076
4045
  >
4077
4046
  <div
4078
- className="ComponentWithLabelHOC__CapComponentStyled-sc-1qk6bpg-0 kOOkix component-with-label title-textarea"
4079
- errorMessage={false}
4080
- labelPosition="top"
4047
+ className="component-with-label title-textarea ComponentWithLabelHOC__CapComponentStyled-sc-1qk6bpg-0 hREhdh"
4081
4048
  >
4082
4049
  <ComponentWithLabelHOC__ComponentWithLabelWrapper
4083
4050
  labelPosition="top"
4084
4051
  >
4085
4052
  <div
4086
- className="ComponentWithLabelHOC__ComponentWithLabelWrapper-sc-1qk6bpg-1 jrdcWr"
4087
- labelPosition="top"
4053
+ className="ComponentWithLabelHOC__ComponentWithLabelWrapper-sc-1qk6bpg-1 evSAae"
4088
4054
  >
4089
4055
  <ComponentWithLabelHOC__StyledCapHeading
4090
4056
  className="component-with-label-label"
4091
4057
  labelPosition="top"
4092
4058
  type="h3"
4093
4059
  >
4094
- <div
4095
- className="CapHeading-vrvcag-0 ComponentWithLabelHOC__StyledCapHeading-sc-1qk6bpg-3 gPVQCv TaSrS component-with-label-label"
4060
+ <CapHeading
4061
+ className="component-with-label-label ComponentWithLabelHOC__StyledCapHeading-sc-1qk6bpg-3 RQKAF"
4096
4062
  labelPosition="top"
4097
4063
  type="h3"
4098
4064
  >
4099
- <FormattedMessage
4100
- defaultMessage="Title"
4101
- id="creatives.containersV2.LineImageCarousel.titleLabel"
4102
- values={Object {}}
4065
+ <div
4066
+ className="component-with-label-label ComponentWithLabelHOC__StyledCapHeading-sc-1qk6bpg-3 RQKAF CapHeading-vrvcag-0 kolsfA"
4067
+ type="h3"
4103
4068
  >
4104
- <span>
4105
- Title
4106
- </span>
4107
- </FormattedMessage>
4108
- </div>
4069
+ <FormattedMessage
4070
+ defaultMessage="Title"
4071
+ id="creatives.containersV2.LineImageCarousel.titleLabel"
4072
+ values={Object {}}
4073
+ >
4074
+ <span>
4075
+ Title
4076
+ </span>
4077
+ </FormattedMessage>
4078
+ </div>
4079
+ </CapHeading>
4109
4080
  </ComponentWithLabelHOC__StyledCapHeading>
4110
4081
  <ComponentWithLabelHOC__InductiveText
4111
4082
  className="component-with-label-inductive-text"
4112
4083
  >
4113
4084
  <span
4114
- className="ComponentWithLabelHOC__InductiveText-sc-1qk6bpg-6 bqmvYR component-with-label-inductive-text"
4085
+ className="component-with-label-inductive-text ComponentWithLabelHOC__InductiveText-sc-1qk6bpg-6 fQeRSx"
4115
4086
  >
4116
4087
  <FormattedMessage
4117
4088
  defaultMessage="The title is shown in push notifications and in the user's chat list."
@@ -4159,7 +4130,7 @@ new message content.",
4159
4130
  "minRows": 5,
4160
4131
  }
4161
4132
  }
4162
- className="TextArea__StyledTextArea-sc-177dfyt-2 jYoWrx"
4133
+ className="TextArea__StyledTextArea-sc-177dfyt-2 bSaDoB"
4163
4134
  cols={35}
4164
4135
  errorMessage={false}
4165
4136
  maxLength={100}
@@ -4174,7 +4145,7 @@ new message content.",
4174
4145
  onResize={[Function]}
4175
4146
  >
4176
4147
  <textarea
4177
- className="ant-input TextArea__StyledTextArea-sc-177dfyt-2 jYoWrx"
4148
+ className="ant-input TextArea__StyledTextArea-sc-177dfyt-2 bSaDoB"
4178
4149
  cols={35}
4179
4150
  errorMessage={false}
4180
4151
  maxLength={100}
@@ -4198,21 +4169,20 @@ new message content.",
4198
4169
  </TextArea__StyledTextArea>
4199
4170
  <TextArea__CharCount>
4200
4171
  <div
4201
- className="TextArea__CharCount-sc-177dfyt-0 cTwZPk"
4172
+ className="TextArea__CharCount-sc-177dfyt-0 caowxr"
4202
4173
  >
4203
4174
  <CapHeading
4204
4175
  type="label1"
4205
4176
  >
4206
4177
  <div
4207
- className="CapHeading-vrvcag-0 fAjLBf"
4178
+ className="CapHeading-vrvcag-0 fiKrGh"
4208
4179
  type="label1"
4209
4180
  >
4210
4181
  <TextArea__ErrorCount
4211
4182
  showError={false}
4212
4183
  >
4213
4184
  <span
4214
- className="TextArea__ErrorCount-sc-177dfyt-1 hocfgI"
4215
- showError={false}
4185
+ className="TextArea__ErrorCount-sc-177dfyt-1 dZFIAx"
4216
4186
  >
4217
4187
  13 /100
4218
4188
  </span>
@@ -4227,7 +4197,7 @@ new message content.",
4227
4197
  </ComponentWithLabelHOC__ComponentWithLabelWrapper>
4228
4198
  </div>
4229
4199
  </ComponentWithLabelHOC__CapComponentStyled>
4230
- </_Class>
4200
+ </_class>
4231
4201
  <CapTab
4232
4202
  activeKey="0"
4233
4203
  defaultActiveKey="0"
@@ -9484,7 +9454,7 @@ new message content.",
9484
9454
  size="s"
9485
9455
  >
9486
9456
  <Icon
9487
- className="CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-add"
9457
+ className="cap-icon-v2 cap-icon-v2-add CapIcon__AntIcon-sc-52535-0 dAqpdr"
9488
9458
  component={[Function]}
9489
9459
  size="s"
9490
9460
  >
@@ -9492,7 +9462,7 @@ new message content.",
9492
9462
  componentName="Icon"
9493
9463
  >
9494
9464
  <i
9495
- className="anticon CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-add"
9465
+ className="anticon cap-icon-v2 cap-icon-v2-add CapIcon__AntIcon-sc-52535-0 dAqpdr"
9496
9466
  size="s"
9497
9467
  >
9498
9468
  <component
@@ -10159,7 +10129,7 @@ new message content.",
10159
10129
  size="s"
10160
10130
  >
10161
10131
  <Icon
10162
- className="CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-copy"
10132
+ className="cap-icon-v2 cap-icon-v2-copy CapIcon__AntIcon-sc-52535-0 dAqpdr"
10163
10133
  component={[Function]}
10164
10134
  size="s"
10165
10135
  >
@@ -10167,7 +10137,7 @@ new message content.",
10167
10137
  componentName="Icon"
10168
10138
  >
10169
10139
  <i
10170
- className="anticon CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-copy"
10140
+ className="anticon cap-icon-v2 cap-icon-v2-copy CapIcon__AntIcon-sc-52535-0 dAqpdr"
10171
10141
  size="s"
10172
10142
  >
10173
10143
  <component
@@ -12122,7 +12092,7 @@ new message content.",
12122
12092
  size="s"
12123
12093
  >
12124
12094
  <Icon
12125
- className="CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-delete"
12095
+ className="cap-icon-v2 cap-icon-v2-delete CapIcon__AntIcon-sc-52535-0 dAqpdr"
12126
12096
  component={[Function]}
12127
12097
  size="s"
12128
12098
  >
@@ -12130,7 +12100,7 @@ new message content.",
12130
12100
  componentName="Icon"
12131
12101
  >
12132
12102
  <i
12133
- className="anticon CapIcon__AntIcon-sc-52535-0 hgyZDq cap-icon-v2 cap-icon-v2-delete"
12103
+ className="anticon cap-icon-v2 cap-icon-v2-delete CapIcon__AntIcon-sc-52535-0 dAqpdr"
12134
12104
  size="s"
12135
12105
  >
12136
12106
  <component
@@ -19431,6 +19401,7 @@ exports[`line wrapper test/> should render line component old 1`] = `
19431
19401
  "creatives.components.TemplatePreview.smsFormatType": "Message has unicode characters",
19432
19402
  "creatives.components.TemplatePreview.smsIcon": "Sms Icon",
19433
19403
  "creatives.components.TemplatePreview.unicodeIconTooltip": "This message has unicode characters. This may affect the cost per message.",
19404
+ "creatives.components.TestPage.header": "Looks like youas are lost!",
19434
19405
  "creatives.components.Toastr.header": "This is the Toastr component !",
19435
19406
  "creatives.components.ToastrMessage.close": "close",
19436
19407
  "creatives.components.ToastrMessage.header": "This is the ToastrMessage component !",
@@ -20115,6 +20086,9 @@ exports[`line wrapper test/> should render line component old 1`] = `
20115
20086
  "creatives.containers.Templates.wechatHeader": "WECHAT",
20116
20087
  "creatives.containers.Templates.yesText": "Yes",
20117
20088
  "creatives.containers.Templates.zipUploadFailed": "Failed to upload zip file",
20089
+ "creatives.containers.Testv2.descriptionTestv2": "Description of Testv2",
20090
+ "creatives.containers.Testv2.header": "This is Testv2 container !",
20091
+ "creatives.containers.Testv2.testv2": "Testv2",
20118
20092
  "creatives.containers.View.descriptionView": "Description of View",
20119
20093
  "creatives.containers.View.header": "This is View container !",
20120
20094
  "creatives.containers.View.view": "View",
@@ -21121,6 +21095,10 @@ new message content.",
21121
21095
  "creatives.containersV2.TemplatesV2.viber": "Viber",
21122
21096
  "creatives.containersV2.TemplatesV2.wechat": "Wechat",
21123
21097
  "creatives.containersV2.TemplatesV2.whatsapp": "WhatsApp",
21098
+ "creatives.containersV2.TestPage.header": "Looks like youas are lost!",
21099
+ "creatives.containersV2.Testv2.descriptionTestv2": "Description of Testv2",
21100
+ "creatives.containersV2.Testv2.header": "This is Testv2 container !",
21101
+ "creatives.containersV2.Testv2.testv2": "Testv2",
21124
21102
  "creatives.containersV2.View.descriptionView": "Description of View",
21125
21103
  "creatives.containersV2.View.header": "This is View container !",
21126
21104
  "creatives.containersV2.View.view": "View",
@@ -21517,45 +21495,9 @@ new message content.",
21517
21495
  }
21518
21496
  store={
21519
21497
  Object {
21498
+ "asyncReducers": Object {},
21520
21499
  "dispatch": [Function],
21521
21500
  "getState": [Function],
21522
- "initialHistory": Object {
21523
- "action": "POP",
21524
- "block": [Function],
21525
- "createHref": [Function],
21526
- "go": [Function],
21527
- "goBack": [Function],
21528
- "goForward": [Function],
21529
- "length": 1,
21530
- "listen": [Function],
21531
- "location": Object {
21532
- "hash": "",
21533
- "pathname": "/",
21534
- "search": "",
21535
- "state": undefined,
21536
- },
21537
- "push": [Function],
21538
- "replace": [Function],
21539
- },
21540
- "initialReducer": Object {
21541
- "ASK_AIRA": [Function],
21542
- "FTP": [Function],
21543
- "app": [Function],
21544
- "beeEditor": [Function],
21545
- "cap": [Function],
21546
- "create": [Function],
21547
- "ebill": [Function],
21548
- "edit": [Function],
21549
- "email": [Function],
21550
- "facebookPreview": [Function],
21551
- "gallery": [Function],
21552
- "language": [Function],
21553
- "navigationConfig": [Function],
21554
- "tagList": [Function],
21555
- "templates": [Function],
21556
- },
21557
- "injectedReducers": Object {},
21558
- "injectedSagas": Object {},
21559
21501
  "replaceReducer": [Function],
21560
21502
  "runSaga": [Function],
21561
21503
  "subscribe": [Function],
@@ -2,15 +2,16 @@ import React from 'react';
2
2
  import { act } from 'react-dom/test-utils';
3
3
  import { Provider } from 'react-redux';
4
4
  import { configureStore } from '@capillarytech/vulcan-react-sdk/utils';
5
- import history from '../../../../../utils/history';
5
+ import { createBrowserHistory } from 'history';
6
6
  import { initialReducer } from '../../../../../initialReducer';
7
7
  import { mountWithIntl } from '../../../../../../app/helpers/intl-enzym-test-helpers';
8
8
  import { LineImageCarouselContent } from '../Content';
9
9
  import { mockData } from './mockData';
10
10
 
11
11
  let store;
12
+ let browserHistory = createBrowserHistory();
12
13
  beforeAll(() => {
13
- store = configureStore({}, initialReducer, history);
14
+ store = configureStore({}, initialReducer, browserHistory);
14
15
  });
15
16
 
16
17
  describe('Creatives line image carousel test/>', () => {
@@ -1,15 +1,16 @@
1
1
  import React from 'react';
2
2
  import { Provider } from 'react-redux';
3
3
  import { configureStore } from '@capillarytech/vulcan-react-sdk/utils';
4
- import history from '../../../../../utils/history';
4
+ import { createBrowserHistory } from 'history';
5
5
  import { initialReducer } from '../../../../../initialReducer';
6
6
  import { mountWithIntl } from '../../../../../helpers/intl-enzym-test-helpers';
7
7
  import { LineImageCarousel } from '../index';
8
8
  import { mockData } from './mockData';
9
9
 
10
10
  let store;
11
+ let browserHistory = createBrowserHistory();
11
12
  beforeAll(() => {
12
- store = configureStore({}, initialReducer, history);
13
+ store = configureStore({}, initialReducer, browserHistory);
13
14
  });
14
15
 
15
16
  jest.mock('../Content', () => ({