@capillarytech/creatives-library 7.14.19 → 7.14.21

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.
@@ -34,7 +34,7 @@ describe('line wrapper test/>', () => {
34
34
  const clearEditResponse = jest.fn();
35
35
  const createTemplate = jest.fn();
36
36
  const editTemplate = jest.fn();
37
- const renderHelper = (Line, Templates, templateData, params, isFullMode) => {
37
+ const renderHelper = (Line, Templates, templateData, params, isFullMode, selectedOfferDetails) => {
38
38
  renderedComponent = mountWithIntl(
39
39
  <Provider store={store}>
40
40
  <LineContainer
@@ -49,6 +49,7 @@ describe('line wrapper test/>', () => {
49
49
  lineData={Templates}
50
50
  templateData={templateData}
51
51
  params={params}
52
+ selectedOfferDetails={selectedOfferDetails}
52
53
  templateActions={{
53
54
  getWeCrmAccounts,
54
55
  getAllTemplates,
@@ -73,13 +74,15 @@ describe('line wrapper test/>', () => {
73
74
  },
74
75
  });
75
76
  });
76
- const { Line1, Templates1, templateData1, params1 } = mockData;
77
+ const { Line1, Templates1, templateData1, params1, selectedOfferDetails } = mockData;
77
78
  renderHelper(Line1, Templates1, templateData1, params1, true);
78
79
  expect(renderedComponent).toMatchSnapshot();
79
80
  renderedComponent.find('CapButton.create-msg').simulate('click');
80
81
  expect(renderedComponent).toMatchSnapshot();
81
82
  renderHelper(Line1, Templates1, templateData1, params1, false);
82
83
  expect(renderedComponent).toMatchSnapshot();
84
+ renderHelper(Line1, Templates1, templateData1, params1, false, selectedOfferDetails);
85
+ expect(renderedComponent).toMatchSnapshot();
83
86
  renderedComponent.find('CapButton.create-msg').simulate('click');
84
87
  expect(renderedComponent).toMatchSnapshot();
85
88
  });