@capillarytech/creatives-library 7.12.31 → 7.12.33
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/components/Card/tests/index.test.js +10 -12
- package/components/FormBuilder/_formBuilder.scss +1 -1
- package/components/SlideBox/index.js +0 -1
- package/components/SlideBox/tests/index.test.js +2 -2
- package/containers/Assets/Gallery/tests/reducer.test.js +2 -1
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +1876 -0
- package/containers/Cap/tests/index.test.js +16 -10
- package/containers/LanguageProvider/tests/index.test.js +5 -1
- package/i18n.js +6 -4
- package/package.json +4 -1
- package/translations/en.json +42 -119
- package/translations/zh.json +38 -115
- package/utils/test-utils.js +63 -0
- package/v2Components/CapActionButton/index.js +54 -48
- package/v2Components/CapActionButton/tests/index.test.js +33 -24
- package/v2Components/CapWhatsappCTA/constants.js +34 -0
- package/v2Components/CapWhatsappCTA/index.js +321 -0
- package/v2Components/CapWhatsappCTA/index.scss +64 -0
- package/v2Components/CapWhatsappCTA/messages.js +56 -0
- package/v2Components/EmailPreviewV2/index.js +1 -1
- package/v2Components/EmailPreviewV2/tests/__snapshots__/index.test.js.snap +135 -0
- package/v2Components/EmailPreviewV2/tests/index.test.js +8 -2
- package/v2Components/FormBuilder/_formBuilder.scss +1 -1
- package/v2Components/MarketingObjective/index.js +2 -2
- package/v2Components/MarketingObjective/test/index.test.js +33 -0
- package/v2Components/SlideBox/tests/index.test.js +2 -2
- package/v2Components/TemplatePreview/_templatePreview.scss +8 -0
- package/v2Components/TemplatePreview/index.js +29 -2
- package/v2Components/TemplatePreview/tests/__snapshots__/index.test.js.snap +1 -1
- package/v2Containers/Assets/Gallery/tests/reducer.test.js +2 -1
- package/v2Containers/Cap/messages.js +4 -0
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +1930 -0
- package/v2Containers/Cap/tests/index.test.js +56 -10
- package/v2Containers/LanguageProvider/tests/index.test.js +9 -2
- package/v2Containers/LanguageProvider/tests/reducer.test.js +5 -1
- package/v2Containers/Line/Container/Video/index.js +1 -0
- package/v2Containers/Line/Container/Video/tests/index.test.js +62 -0
- package/v2Containers/Rcs/index.js +72 -66
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +2004 -16874
- package/v2Containers/Rcs/tests/index.test.js +7 -12
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +176 -476
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +336 -952
- package/v2Containers/Templates/index.js +10 -5
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +499 -419
- package/v2Containers/Templates/tests/index.test.js +8 -4
- package/v2Containers/Whatsapp/constants.js +22 -5
- package/v2Containers/Whatsapp/index.js +199 -9
- package/v2Containers/Whatsapp/index.scss +42 -1
- package/v2Containers/Whatsapp/messages.js +39 -2
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +37677 -5915
- package/v2Containers/Whatsapp/utils.js +37 -0
- package/v2Containers/mockdata.js +47 -0
- package/components/BreadCrumbs/tests/index.test.js +0 -10
- package/components/CapTagList/tests/index.test.js +0 -10
- package/components/CardGrid/tests/index.test.js +0 -10
- package/components/Ckeditor/tests/index.test.js +0 -10
- package/components/Component/tests/index.test.js +0 -10
- package/components/CustomPopOver/tests/index.test.js +0 -10
- package/components/DateFilter/tests/index.test.js +0 -15
- package/components/DateRange/tests/index.test.js +0 -10
- package/components/Edmeditor/tests/index.test.js +0 -10
- package/components/EmailPreview/tests/index.test.js +0 -10
- package/components/Footer/tests/index.test.js +0 -10
- package/components/FormBuilder/tests/index.test.js +0 -10
- package/components/Header/tests/index.test.js +0 -10
- package/components/ImagePreview/tests/index.test.js +0 -10
- package/components/PageHeader/tests/index.test.js +0 -10
- package/components/Pagination/tests/index.test.js +0 -10
- package/components/PreviewSideBar/tests/index.test.js +0 -10
- package/components/Sidebar/tests/index.test.js +0 -10
- package/components/SmsEditor/tests/index.test.js +0 -10
- package/components/SmsTest/tests/index.test.js +0 -10
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +0 -10
- package/components/TemplatePreview/tests/index.test.js +0 -10
- package/components/Toastr/tests/index.test.js +0 -10
- package/components/ToastrMessage/tests/index.test.js +0 -10
- package/components/TopBar/tests/index.test.js +0 -10
- package/containers/App/tests/actions.test.js +0 -18
- package/containers/App/tests/reducer.test.js +0 -9
- package/containers/App/tests/sagas.test.js +0 -15
- package/containers/App/tests/selectors.test.js +0 -10
- package/containers/Assets/Gallery/tests/index.test.js +0 -10
- package/containers/Assets/Gallery/tests/sagas.test.js +0 -15
- package/containers/Assets/Gallery/tests/selectors.test.js +0 -10
- package/containers/Dashboard/tests/actions.test.js +0 -18
- package/containers/Dashboard/tests/index.test.js +0 -10
- package/containers/Dashboard/tests/reducer.test.js +0 -9
- package/containers/Dashboard/tests/sagas.test.js +0 -15
- package/containers/Dashboard/tests/selectors.test.js +0 -10
- package/containers/Ebill/tests/actions.test.js +0 -18
- package/containers/Ebill/tests/index.test.js +0 -10
- package/containers/Ebill/tests/reducer.test.js +0 -9
- package/containers/Ebill/tests/sagas.test.js +0 -15
- package/containers/Ebill/tests/selectors.test.js +0 -10
- package/containers/Email/tests/actions.test.js +0 -18
- package/containers/Email/tests/index.test.js +0 -10
- package/containers/Email/tests/reducer.test.js +0 -9
- package/containers/Email/tests/sagas.test.js +0 -15
- package/containers/Email/tests/selectors.test.js +0 -10
- package/containers/Line/Edit/tests/actions.test.js +0 -18
- package/containers/Line/Edit/tests/index.test.js +0 -10
- package/containers/Line/Edit/tests/reducer.test.js +0 -9
- package/containers/Line/Edit/tests/sagas.test.js +0 -15
- package/containers/Line/Edit/tests/selectors.test.js +0 -10
- package/containers/Login/components/LoginForm/tests/index.test.js +0 -10
- package/containers/Login/tests/index.test.js +0 -10
- package/containers/Login/tests/sagas.test.js +0 -15
- package/containers/Login/tests/selectors.test.js +0 -10
- package/containers/MobilePush/Create/tests/actions.test.js +0 -18
- package/containers/MobilePush/Create/tests/index.test.js +0 -10
- package/containers/MobilePush/Create/tests/reducer.test.js +0 -9
- package/containers/MobilePush/Create/tests/sagas.test.js +0 -15
- package/containers/MobilePush/Create/tests/selectors.test.js +0 -10
- package/containers/MobilePush/Edit/tests/actions.test.js +0 -18
- package/containers/MobilePush/Edit/tests/index.test.js +0 -10
- package/containers/MobilePush/Edit/tests/reducer.test.js +0 -9
- package/containers/MobilePush/Edit/tests/sagas.test.js +0 -15
- package/containers/MobilePush/Edit/tests/selectors.test.js +0 -10
- package/containers/Sms/Create/tests/actions.test.js +0 -18
- package/containers/Sms/Create/tests/index.test.js +0 -10
- package/containers/Sms/Create/tests/reducer.test.js +0 -9
- package/containers/Sms/Create/tests/sagas.test.js +0 -15
- package/containers/Sms/Create/tests/selectors.test.js +0 -10
- package/containers/Sms/Edit/tests/actions.test.js +0 -18
- package/containers/Sms/Edit/tests/index.test.js +0 -10
- package/containers/Sms/Edit/tests/reducer.test.js +0 -9
- package/containers/Sms/Edit/tests/sagas.test.js +0 -15
- package/containers/Sms/Edit/tests/selectors.test.js +0 -10
- package/containers/TagList/tests/actions.test.js +0 -18
- package/containers/TagList/tests/index.test.js +0 -10
- package/containers/TagList/tests/reducer.test.js +0 -9
- package/containers/TagList/tests/sagas.test.js +0 -15
- package/containers/TagList/tests/selectors.test.js +0 -10
- package/containers/Templates/tests/actions.test.js +0 -18
- package/containers/Templates/tests/index.test.js +0 -10
- package/containers/Templates/tests/reducer.test.js +0 -9
- package/containers/Templates/tests/sagas.test.js +0 -15
- package/containers/Templates/tests/selectors.test.js +0 -10
- package/containers/Testv2/tests/actions.test.js +0 -18
- package/containers/Testv2/tests/index.test.js +0 -10
- package/containers/Testv2/tests/reducer.test.js +0 -9
- package/containers/Testv2/tests/sagas.test.js +0 -15
- package/containers/Testv2/tests/selectors.test.js +0 -10
- package/containers/WeChat/MapTemplates/tests/actions.test.js +0 -18
- package/containers/WeChat/MapTemplates/tests/index.test.js +0 -10
- package/containers/WeChat/MapTemplates/tests/reducer.test.js +0 -9
- package/containers/WeChat/MapTemplates/tests/sagas.test.js +0 -15
- package/containers/WeChat/MapTemplates/tests/selectors.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/Create/tests/actions.test.js +0 -18
- package/containers/WeChat/RichmediaTemplates/Create/tests/index.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/Create/tests/reducer.test.js +0 -9
- package/containers/WeChat/RichmediaTemplates/Create/tests/sagas.test.js +0 -15
- package/containers/WeChat/RichmediaTemplates/Create/tests/selectors.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/Edit/tests/actions.test.js +0 -18
- package/containers/WeChat/RichmediaTemplates/Edit/tests/index.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/Edit/tests/reducer.test.js +0 -9
- package/containers/WeChat/RichmediaTemplates/Edit/tests/sagas.test.js +0 -15
- package/containers/WeChat/RichmediaTemplates/Edit/tests/selectors.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/View/tests/actions.test.js +0 -18
- package/containers/WeChat/RichmediaTemplates/View/tests/index.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/View/tests/reducer.test.js +0 -9
- package/containers/WeChat/RichmediaTemplates/View/tests/sagas.test.js +0 -15
- package/containers/WeChat/RichmediaTemplates/View/tests/selectors.test.js +0 -10
- package/gtm/tests/events.test.js +0 -3
- package/v2Components/BreadCrumbs/tests/index.test.js +0 -10
- package/v2Components/CapActionButton/tests/__snapshots__/index.test.js.snap +0 -151
- package/v2Components/CapTagList/tests/index.test.js +0 -10
- package/v2Components/Card/tests/index.test.js +0 -10
- package/v2Components/CardGrid/tests/index.test.js +0 -10
- package/v2Components/Ckeditor/tests/index.test.js +0 -10
- package/v2Components/CmsTemplatesComponent/tests/index.test.js +0 -10
- package/v2Components/Component/tests/index.test.js +0 -10
- package/v2Components/CustomPopOver/tests/index.test.js +0 -10
- package/v2Components/Edmeditor/tests/index.test.js +0 -10
- package/v2Components/EmailPreview/tests/index.test.js +0 -10
- package/v2Components/Footer/tests/index.test.js +0 -10
- package/v2Components/FormBuilder/tests/index.test.js +0 -10
- package/v2Components/ImagePreview/tests/index.test.js +0 -10
- package/v2Components/MobilePushPreviewV2/tests/index.test.js +0 -10
- package/v2Components/NavigationBar/tests/index.test.js +0 -11
- package/v2Components/NewCallTask/tests/index.test.js +0 -10
- package/v2Components/Pagination/tests/index.test.js +0 -10
- package/v2Components/PreviewSideBar/tests/index.test.js +0 -10
- package/v2Components/SmsTest/tests/index.test.js +0 -10
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +0 -10
- package/v2Components/Toastr/tests/index.test.js +0 -10
- package/v2Components/ToastrMessage/tests/index.test.js +0 -10
- package/v2Components/TopBar/tests/index.test.js +0 -10
- package/v2Containers/App/tests/actions.test.js +0 -18
- package/v2Containers/App/tests/reducer.test.js +0 -9
- package/v2Containers/App/tests/sagas.test.js +0 -15
- package/v2Containers/App/tests/selectors.test.js +0 -10
- package/v2Containers/Assets/Gallery/tests/index.test.js +0 -10
- package/v2Containers/Assets/Gallery/tests/sagas.test.js +0 -15
- package/v2Containers/Assets/Gallery/tests/selectors.test.js +0 -10
- package/v2Containers/BeeEditor/tests/index.test.js +0 -10
- package/v2Containers/CallTask/tests/actions.test.js +0 -18
- package/v2Containers/CallTask/tests/index.test.js +0 -10
- package/v2Containers/CallTask/tests/reducer.test.js +0 -9
- package/v2Containers/CallTask/tests/sagas.test.js +0 -15
- package/v2Containers/CallTask/tests/selectors.test.js +0 -10
- package/v2Containers/ChannelTemplates/tests/actions.test.js +0 -18
- package/v2Containers/ChannelTemplates/tests/index.test.js +0 -10
- package/v2Containers/ChannelTemplates/tests/reducer.test.js +0 -9
- package/v2Containers/ChannelTemplates/tests/sagas.test.js +0 -15
- package/v2Containers/ChannelTemplates/tests/selectors.test.js +0 -10
- package/v2Containers/CreativesContainer/tests/actions.test.js +0 -18
- package/v2Containers/CreativesContainer/tests/reducer.test.js +0 -9
- package/v2Containers/CreativesContainer/tests/sagas.test.js +0 -15
- package/v2Containers/CreativesContainer/tests/selectors.test.js +0 -10
- package/v2Containers/Dashboard/tests/actions.test.js +0 -18
- package/v2Containers/Dashboard/tests/index.test.js +0 -10
- package/v2Containers/Dashboard/tests/reducer.test.js +0 -9
- package/v2Containers/Dashboard/tests/sagas.test.js +0 -15
- package/v2Containers/Dashboard/tests/selectors.test.js +0 -10
- package/v2Containers/Ebill/tests/actions.test.js +0 -18
- package/v2Containers/Ebill/tests/index.test.js +0 -10
- package/v2Containers/Ebill/tests/reducer.test.js +0 -9
- package/v2Containers/Ebill/tests/sagas.test.js +0 -15
- package/v2Containers/Ebill/tests/selectors.test.js +0 -10
- package/v2Containers/Email/tests/actions.test.js +0 -18
- package/v2Containers/Email/tests/index.test.js +0 -10
- package/v2Containers/Email/tests/reducer.test.js +0 -9
- package/v2Containers/Email/tests/sagas.test.js +0 -15
- package/v2Containers/Email/tests/selectors.test.js +0 -10
- package/v2Containers/EmailWrapper/tests/actions.test.js +0 -18
- package/v2Containers/EmailWrapper/tests/index.test.js +0 -10
- package/v2Containers/EmailWrapper/tests/reducer.test.js +0 -9
- package/v2Containers/EmailWrapper/tests/sagas.test.js +0 -15
- package/v2Containers/EmailWrapper/tests/selectors.test.js +0 -10
- package/v2Containers/Login/components/LoginForm/tests/index.test.js +0 -10
- package/v2Containers/Login/tests/index.test.js +0 -10
- package/v2Containers/Login/tests/sagas.test.js +0 -15
- package/v2Containers/Login/tests/selectors.test.js +0 -10
- package/v2Containers/MobilePush/Create/tests/actions.test.js +0 -18
- package/v2Containers/MobilePush/Create/tests/index.test.js +0 -10
- package/v2Containers/MobilePush/Create/tests/reducer.test.js +0 -9
- package/v2Containers/MobilePush/Create/tests/sagas.test.js +0 -15
- package/v2Containers/MobilePush/Create/tests/selectors.test.js +0 -10
- package/v2Containers/MobilePush/Edit/tests/actions.test.js +0 -18
- package/v2Containers/MobilePush/Edit/tests/index.test.js +0 -10
- package/v2Containers/MobilePush/Edit/tests/reducer.test.js +0 -9
- package/v2Containers/MobilePush/Edit/tests/sagas.test.js +0 -15
- package/v2Containers/MobilePush/Edit/tests/selectors.test.js +0 -10
- package/v2Containers/MobilepushWrapper/tests/index.test.js +0 -10
- package/v2Containers/Sms/Create/tests/actions.test.js +0 -18
- package/v2Containers/Sms/Create/tests/index.test.js +0 -10
- package/v2Containers/Sms/Create/tests/reducer.test.js +0 -9
- package/v2Containers/Sms/Create/tests/sagas.test.js +0 -15
- package/v2Containers/Sms/Create/tests/selectors.test.js +0 -10
- package/v2Containers/Sms/Edit/tests/actions.test.js +0 -18
- package/v2Containers/Sms/Edit/tests/index.test.js +0 -10
- package/v2Containers/Sms/Edit/tests/reducer.test.js +0 -9
- package/v2Containers/Sms/Edit/tests/sagas.test.js +0 -15
- package/v2Containers/Sms/Edit/tests/selectors.test.js +0 -10
- package/v2Containers/SmsWrapper/tests/index.test.js +0 -10
- package/v2Containers/TagList/tests/actions.test.js +0 -18
- package/v2Containers/TagList/tests/index.test.js +0 -10
- package/v2Containers/TagList/tests/reducer.test.js +0 -9
- package/v2Containers/TagList/tests/sagas.test.js +0 -15
- package/v2Containers/TagList/tests/selectors.test.js +0 -10
- package/v2Containers/Templates/tests/actions.test.js +0 -18
- package/v2Containers/Templates/tests/reducer.test.js +0 -9
- package/v2Containers/Templates/tests/sagas.test.js +0 -15
- package/v2Containers/Templates/tests/selectors.test.js +0 -10
- package/v2Containers/TemplatesV2/tests/actions.test.js +0 -18
- package/v2Containers/TemplatesV2/tests/index.test.js +0 -10
- package/v2Containers/TemplatesV2/tests/reducer.test.js +0 -9
- package/v2Containers/TemplatesV2/tests/sagas.test.js +0 -15
- package/v2Containers/TemplatesV2/tests/selectors.test.js +0 -10
- package/v2Containers/Testv2/tests/actions.test.js +0 -18
- package/v2Containers/Testv2/tests/index.test.js +0 -10
- package/v2Containers/Testv2/tests/reducer.test.js +0 -9
- package/v2Containers/Testv2/tests/sagas.test.js +0 -15
- package/v2Containers/Testv2/tests/selectors.test.js +0 -10
- package/v2Containers/WeChat/MapTemplates/tests/actions.test.js +0 -18
- package/v2Containers/WeChat/MapTemplates/tests/index.test.js +0 -10
- package/v2Containers/WeChat/MapTemplates/tests/reducer.test.js +0 -9
- package/v2Containers/WeChat/MapTemplates/tests/sagas.test.js +0 -15
- package/v2Containers/WeChat/MapTemplates/tests/selectors.test.js +0 -10
- package/v2Containers/WeChat/RichmediaTemplates/Create/tests/actions.test.js +0 -18
- package/v2Containers/WeChat/RichmediaTemplates/Create/tests/index.test.js +0 -10
- package/v2Containers/WeChat/RichmediaTemplates/Create/tests/reducer.test.js +0 -9
- package/v2Containers/WeChat/RichmediaTemplates/Create/tests/sagas.test.js +0 -15
- package/v2Containers/WeChat/RichmediaTemplates/Create/tests/selectors.test.js +0 -10
- package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/actions.test.js +0 -18
- package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/index.test.js +0 -10
- package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/reducer.test.js +0 -9
- package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/sagas.test.js +0 -15
- package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/selectors.test.js +0 -10
- package/v2Containers/WeChat/RichmediaTemplates/View/tests/actions.test.js +0 -18
- package/v2Containers/WeChat/RichmediaTemplates/View/tests/index.test.js +0 -10
- package/v2Containers/WeChat/RichmediaTemplates/View/tests/reducer.test.js +0 -9
- package/v2Containers/WeChat/RichmediaTemplates/View/tests/sagas.test.js +0 -15
- package/v2Containers/WeChat/RichmediaTemplates/View/tests/selectors.test.js +0 -10
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test sagas
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/* eslint-disable redux-saga/yield-effects */
|
|
6
|
-
// import { take, call, put, select } from 'redux-saga/effects';
|
|
7
|
-
// import { defaultSaga } from '../sagas';
|
|
8
|
-
|
|
9
|
-
// const generator = defaultSaga();
|
|
10
|
-
|
|
11
|
-
describe('defaultSaga Saga', () => {
|
|
12
|
-
it('Expect to have unit tests specified', () => {
|
|
13
|
-
expect(true).toEqual(false);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import { fromJS } from 'immutable';
|
|
2
|
-
// import { makeSelectTestv2Domain } from '../selectors';
|
|
3
|
-
|
|
4
|
-
// const selector = makeSelectTestv2Domain();
|
|
5
|
-
|
|
6
|
-
describe('makeSelectTestv2Domain', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
defaultAction,
|
|
4
|
-
} from '../actions';
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_ACTION,
|
|
7
|
-
} from '../constants';
|
|
8
|
-
|
|
9
|
-
describe('WeChat actions', () => {
|
|
10
|
-
describe('Default Action', () => {
|
|
11
|
-
it('has a type of DEFAULT_ACTION', () => {
|
|
12
|
-
const expected = {
|
|
13
|
-
type: DEFAULT_ACTION,
|
|
14
|
-
};
|
|
15
|
-
expect(defaultAction()).toEqual(expected);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test sagas
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/* eslint-disable redux-saga/yield-effects */
|
|
6
|
-
// import { take, call, put, select } from 'redux-saga/effects';
|
|
7
|
-
// import { defaultSaga } from '../sagas';
|
|
8
|
-
|
|
9
|
-
// const generator = defaultSaga();
|
|
10
|
-
|
|
11
|
-
describe('defaultSaga Saga', () => {
|
|
12
|
-
it('Expect to have unit tests specified', () => {
|
|
13
|
-
expect(true).toEqual(false);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import { fromJS } from 'immutable';
|
|
2
|
-
// import { makeSelectWeChatDomain } from '../selectors';
|
|
3
|
-
|
|
4
|
-
// const selector = makeSelectWeChatDomain();
|
|
5
|
-
|
|
6
|
-
describe('makeSelectWeChatDomain', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
defaultAction,
|
|
4
|
-
} from '../actions';
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_ACTION,
|
|
7
|
-
} from '../constants';
|
|
8
|
-
|
|
9
|
-
describe('Create actions', () => {
|
|
10
|
-
describe('Default Action', () => {
|
|
11
|
-
it('has a type of DEFAULT_ACTION', () => {
|
|
12
|
-
const expected = {
|
|
13
|
-
type: DEFAULT_ACTION,
|
|
14
|
-
};
|
|
15
|
-
expect(defaultAction()).toEqual(expected);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test sagas
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/* eslint-disable redux-saga/yield-effects */
|
|
6
|
-
// import { take, call, put, select } from 'redux-saga/effects';
|
|
7
|
-
// import { defaultSaga } from '../sagas';
|
|
8
|
-
|
|
9
|
-
// const generator = defaultSaga();
|
|
10
|
-
|
|
11
|
-
describe('defaultSaga Saga', () => {
|
|
12
|
-
it('Expect to have unit tests specified', () => {
|
|
13
|
-
expect(true).toEqual(false);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import { fromJS } from 'immutable';
|
|
2
|
-
// import { makeSelectCreateDomain } from '../selectors';
|
|
3
|
-
|
|
4
|
-
// const selector = makeSelectCreateDomain();
|
|
5
|
-
|
|
6
|
-
describe('makeSelectCreateDomain', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
defaultAction,
|
|
4
|
-
} from '../actions';
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_ACTION,
|
|
7
|
-
} from '../constants';
|
|
8
|
-
|
|
9
|
-
describe('Edit actions', () => {
|
|
10
|
-
describe('Default Action', () => {
|
|
11
|
-
it('has a type of DEFAULT_ACTION', () => {
|
|
12
|
-
const expected = {
|
|
13
|
-
type: DEFAULT_ACTION,
|
|
14
|
-
};
|
|
15
|
-
expect(defaultAction()).toEqual(expected);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test sagas
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/* eslint-disable redux-saga/yield-effects */
|
|
6
|
-
// import { take, call, put, select } from 'redux-saga/effects';
|
|
7
|
-
// import { defaultSaga } from '../sagas';
|
|
8
|
-
|
|
9
|
-
// const generator = defaultSaga();
|
|
10
|
-
|
|
11
|
-
describe('defaultSaga Saga', () => {
|
|
12
|
-
it('Expect to have unit tests specified', () => {
|
|
13
|
-
expect(true).toEqual(false);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import { fromJS } from 'immutable';
|
|
2
|
-
// import { makeSelectEditDomain } from '../selectors';
|
|
3
|
-
|
|
4
|
-
// const selector = makeSelectEditDomain();
|
|
5
|
-
|
|
6
|
-
describe('makeSelectEditDomain', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
defaultAction,
|
|
4
|
-
} from '../actions';
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_ACTION,
|
|
7
|
-
} from '../constants';
|
|
8
|
-
|
|
9
|
-
describe('View actions', () => {
|
|
10
|
-
describe('Default Action', () => {
|
|
11
|
-
it('has a type of DEFAULT_ACTION', () => {
|
|
12
|
-
const expected = {
|
|
13
|
-
type: DEFAULT_ACTION,
|
|
14
|
-
};
|
|
15
|
-
expect(defaultAction()).toEqual(expected);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test sagas
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/* eslint-disable redux-saga/yield-effects */
|
|
6
|
-
// import { take, call, put, select } from 'redux-saga/effects';
|
|
7
|
-
// import { defaultSaga } from '../sagas';
|
|
8
|
-
|
|
9
|
-
// const generator = defaultSaga();
|
|
10
|
-
|
|
11
|
-
describe('defaultSaga Saga', () => {
|
|
12
|
-
it('Expect to have unit tests specified', () => {
|
|
13
|
-
expect(true).toEqual(false);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import { fromJS } from 'immutable';
|
|
2
|
-
// import { makeSelectViewDomain } from '../selectors';
|
|
3
|
-
|
|
4
|
-
// const selector = makeSelectViewDomain();
|
|
5
|
-
|
|
6
|
-
describe('makeSelectViewDomain', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
package/gtm/tests/events.test.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { shallow } from 'enzyme';
|
|
3
|
-
|
|
4
|
-
// import BreadCrumbs from '../index';
|
|
5
|
-
|
|
6
|
-
// describe('<BreadCrumbs />', () => {
|
|
7
|
-
// it('Expect to have unit tests specified', () => {
|
|
8
|
-
// expect(true).toEqual(false);
|
|
9
|
-
// });
|
|
10
|
-
// });
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`CapActionButton test Test if CapActionButton component renders 1`] = `
|
|
4
|
-
<CapRow
|
|
5
|
-
className="cap-action-button"
|
|
6
|
-
>
|
|
7
|
-
<CapHeading
|
|
8
|
-
type="h4"
|
|
9
|
-
>
|
|
10
|
-
<FormattedMessage
|
|
11
|
-
defaultMessage="Button text"
|
|
12
|
-
id="creatives.componentsV2.CapActionButton.templateButtonText"
|
|
13
|
-
values={Object {}}
|
|
14
|
-
/>
|
|
15
|
-
</CapHeading>
|
|
16
|
-
<_class
|
|
17
|
-
id="rcs-template-Button-Text"
|
|
18
|
-
labelPosition="top"
|
|
19
|
-
maxLength={200}
|
|
20
|
-
onChange={[Function]}
|
|
21
|
-
placeholder="Enter button text"
|
|
22
|
-
size="default"
|
|
23
|
-
suffix={
|
|
24
|
-
<CapLabel
|
|
25
|
-
type="label1"
|
|
26
|
-
>
|
|
27
|
-
4 / 200
|
|
28
|
-
</CapLabel>
|
|
29
|
-
}
|
|
30
|
-
value="text"
|
|
31
|
-
/>
|
|
32
|
-
<CapHeading
|
|
33
|
-
style={
|
|
34
|
-
Object {
|
|
35
|
-
"paddingTop": "20px",
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
type="h4"
|
|
39
|
-
>
|
|
40
|
-
<FormattedMessage
|
|
41
|
-
defaultMessage="Button link"
|
|
42
|
-
id="creatives.componentsV2.CapActionButton.templateButtonLink"
|
|
43
|
-
values={Object {}}
|
|
44
|
-
/>
|
|
45
|
-
</CapHeading>
|
|
46
|
-
<_class
|
|
47
|
-
errorMessage={false}
|
|
48
|
-
id="rcs-template-Button-link"
|
|
49
|
-
labelPosition="top"
|
|
50
|
-
onChange={[Function]}
|
|
51
|
-
placeholder="Enter button link"
|
|
52
|
-
size="default"
|
|
53
|
-
value="url"
|
|
54
|
-
/>
|
|
55
|
-
<CapDivider
|
|
56
|
-
style={
|
|
57
|
-
Object {
|
|
58
|
-
"marginBottom": 16,
|
|
59
|
-
"marginTop": 23,
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/>
|
|
63
|
-
<CapTooltip
|
|
64
|
-
placement="topLeft"
|
|
65
|
-
title="Right now only one Call to action button is enabled, in future you would be able to add upto 3 buttons."
|
|
66
|
-
>
|
|
67
|
-
<CapButton
|
|
68
|
-
className="disabled-button"
|
|
69
|
-
isAddBtn={true}
|
|
70
|
-
type="flat"
|
|
71
|
-
>
|
|
72
|
-
Add button
|
|
73
|
-
</CapButton>
|
|
74
|
-
</CapTooltip>
|
|
75
|
-
</CapRow>
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
exports[`CapActionButton test Test if CapActionButton component renders 2`] = `
|
|
79
|
-
<CapRow
|
|
80
|
-
className="cap-action-button"
|
|
81
|
-
>
|
|
82
|
-
<CapHeading
|
|
83
|
-
type="h4"
|
|
84
|
-
>
|
|
85
|
-
<FormattedMessage
|
|
86
|
-
defaultMessage="Button text"
|
|
87
|
-
id="creatives.componentsV2.CapActionButton.templateButtonText"
|
|
88
|
-
values={Object {}}
|
|
89
|
-
/>
|
|
90
|
-
</CapHeading>
|
|
91
|
-
<_class
|
|
92
|
-
id="rcs-template-Button-Text"
|
|
93
|
-
labelPosition="top"
|
|
94
|
-
maxLength={200}
|
|
95
|
-
onChange={[Function]}
|
|
96
|
-
placeholder="Enter button text"
|
|
97
|
-
size="default"
|
|
98
|
-
suffix={
|
|
99
|
-
<CapLabel
|
|
100
|
-
type="label1"
|
|
101
|
-
>
|
|
102
|
-
9 / 200
|
|
103
|
-
</CapLabel>
|
|
104
|
-
}
|
|
105
|
-
value="testValue"
|
|
106
|
-
/>
|
|
107
|
-
<CapHeading
|
|
108
|
-
style={
|
|
109
|
-
Object {
|
|
110
|
-
"paddingTop": "20px",
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
type="h4"
|
|
114
|
-
>
|
|
115
|
-
<FormattedMessage
|
|
116
|
-
defaultMessage="Button link"
|
|
117
|
-
id="creatives.componentsV2.CapActionButton.templateButtonLink"
|
|
118
|
-
values={Object {}}
|
|
119
|
-
/>
|
|
120
|
-
</CapHeading>
|
|
121
|
-
<_class
|
|
122
|
-
errorMessage={false}
|
|
123
|
-
id="rcs-template-Button-link"
|
|
124
|
-
labelPosition="top"
|
|
125
|
-
onChange={[Function]}
|
|
126
|
-
placeholder="Enter button link"
|
|
127
|
-
size="default"
|
|
128
|
-
value="https://www.google.com"
|
|
129
|
-
/>
|
|
130
|
-
<CapDivider
|
|
131
|
-
style={
|
|
132
|
-
Object {
|
|
133
|
-
"marginBottom": 16,
|
|
134
|
-
"marginTop": 23,
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
/>
|
|
138
|
-
<CapTooltip
|
|
139
|
-
placement="topLeft"
|
|
140
|
-
title="Right now only one Call to action button is enabled, in future you would be able to add upto 3 buttons."
|
|
141
|
-
>
|
|
142
|
-
<CapButton
|
|
143
|
-
className="disabled-button"
|
|
144
|
-
isAddBtn={true}
|
|
145
|
-
type="flat"
|
|
146
|
-
>
|
|
147
|
-
Add button
|
|
148
|
-
</CapButton>
|
|
149
|
-
</CapTooltip>
|
|
150
|
-
</CapRow>
|
|
151
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { shallow } from 'enzyme';
|
|
3
|
-
|
|
4
|
-
// import CmsTemplatesComponent from '../index';
|
|
5
|
-
|
|
6
|
-
describe('<CmsTemplatesComponent />', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { shallow } from 'enzyme';
|
|
3
|
-
|
|
4
|
-
// import FormBuilder from '../index';
|
|
5
|
-
|
|
6
|
-
// describe('<FormBuilder />', () => {
|
|
7
|
-
// it('Expect to have unit tests specified', () => {
|
|
8
|
-
// expect(true).toEqual(false);
|
|
9
|
-
// });
|
|
10
|
-
// });
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { shallow } from 'enzyme';
|
|
3
|
-
|
|
4
|
-
// import MobilePushPreviewV2 from '../index';
|
|
5
|
-
|
|
6
|
-
describe('<MobilePushPreviewV2 />', () => {
|
|
7
|
-
it('Expect to have unit tests specified', () => {
|
|
8
|
-
expect(true).toEqual(false);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { mount } from 'enzyme';
|
|
3
|
-
// import { enzymeFind } from 'styled-components/test-utils';
|
|
4
|
-
|
|
5
|
-
// import NavigationBar from '../index';
|
|
6
|
-
|
|
7
|
-
describe('<NavigationBar />', () => {
|
|
8
|
-
it('Expect to have unit tests specified', () => {
|
|
9
|
-
expect(true).toEqual(true); // this component will be replaced so just this test case
|
|
10
|
-
});
|
|
11
|
-
});
|