@capillarytech/creatives-library 8.0.37 → 8.0.38
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.
- package/containers/MobilePush/Create/index.js +1 -1
- package/containers/MobilePush/Edit/index.js +1 -1
- package/package.json +1 -1
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +9 -9
- package/v2Containers/Email/index.js +5 -3
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -3
- package/v2Containers/MobilePush/Create/index.js +1 -1
- package/v2Containers/MobilePush/Edit/index.js +1 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +5 -5
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +108 -2288
- package/v2Containers/SmsTrai/Edit/tests/index.test.js +17 -6
|
@@ -6,11 +6,20 @@ import { mountWithIntl } from '../../../../../app/helpers/intl-enzym-test-helper
|
|
|
6
6
|
import { SmsTraiEdit } from '../index';
|
|
7
7
|
import { mockData } from './mockData';
|
|
8
8
|
import history from '../../../../utils/history';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
jest.mock('../../../../services/api', () => ({
|
|
10
|
+
request: jest.fn(),
|
|
11
|
+
}));
|
|
12
|
+
jest.mock('../../../../utils/smsCharCountV2', () => ({
|
|
13
|
+
updateCharCount: ()=>({
|
|
14
|
+
chars_sms: 160,
|
|
15
|
+
chars_used: 29,
|
|
16
|
+
optoutUrlPresent: true,
|
|
17
|
+
optouturlLength: 9,
|
|
18
|
+
parts: 1,
|
|
19
|
+
responseState: "SUCCESS",
|
|
20
|
+
unicode: false,
|
|
21
|
+
char_list:[]
|
|
22
|
+
})}));
|
|
14
23
|
jest.mock('../../../TagList/index.js', () => ({
|
|
15
24
|
__esModule: true,
|
|
16
25
|
default: (props) => (
|
|
@@ -30,7 +39,9 @@ describe('Creatives SmsTraiEdit test/>', () => {
|
|
|
30
39
|
const resetEditTemplate = jest.fn();
|
|
31
40
|
const clearEditResponse = jest.fn();
|
|
32
41
|
const editTemplate = jest.fn();
|
|
33
|
-
const fetchSchemaForEntity = jest.fn()
|
|
42
|
+
const fetchSchemaForEntity = jest.fn(()=>(
|
|
43
|
+
console.log('Fetching schema for entity')
|
|
44
|
+
));
|
|
34
45
|
const formatMessage = jest.fn();
|
|
35
46
|
const handleClose = jest.fn();
|
|
36
47
|
const getFormSubscriptionData = jest.fn();
|