@eohjsc/react-native-smart-city 0.7.3-rc1 → 0.7.3-rc10
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/package.json +17 -15
- package/src/commons/Action/__test__/ItemQuickAction.test.js +5 -5
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/__test__/index.test.js +5 -5
- package/src/commons/ActionGroup/ThreeButtonTemplate/__test__/ThreeButtonCircle.test.js +2 -2
- package/src/commons/ActionGroup/ThreeButtonTemplate/__test__/ThreeButtonDefault.test.js +2 -2
- package/src/commons/ActionGroup/__test__/ColorPickerTemplate.test.js +9 -10
- package/src/commons/ActionGroup/__test__/OnOffSmartLock.test.js +5 -5
- package/src/commons/ActionGroup/__test__/OnOffTemplate.test.js +5 -5
- package/src/commons/ActionGroup/__test__/OptionsDropdownTemplate.test.js +8 -8
- package/src/commons/ActionGroup/__test__/StatesGridActionTemplate.test.js +3 -3
- package/src/commons/ActionGroup/__test__/TimerActionTemplate.test.js +6 -6
- package/src/commons/ActionGroup/__test__/TwoButtonTemplate.test.js +1 -1
- package/src/commons/ActionGroup/__test__/index.test.js +8 -8
- package/src/commons/ActionTemplate/__test__/index.test.js +4 -4
- package/src/commons/Automate/__test__/ItemAutomate.test.js +2 -2
- package/src/commons/ChartAggregationOption/__test__/FourButtonFilterHistory.test.js +2 -2
- package/src/commons/Dashboard/MyPinnedSharedUnit/__test__/MyPinnedSharedUnit.test.js +8 -9
- package/src/commons/Dashboard/MyUnit/__test__/MyUnit.test.js +7 -7
- package/src/commons/Device/Emergency/__test__/EmergencyButton.test.js +1 -1
- package/src/commons/Device/FlatListItems.js +17 -16
- package/src/commons/Device/Hanet/ItemHanetDevice.test.js +3 -3
- package/src/commons/FieldTemplate/PasscodeField/__test__/index.test.js +3 -3
- package/src/commons/FieldTemplate/ScheduleField/__test__/index.test.js +6 -6
- package/src/commons/FlatListDnD/__test__/index.test.js +4 -4
- package/src/commons/FlatListDnD/index.js +12 -9
- package/src/commons/GroupCheckBox/__test__/GroupCheckBox.test.js +3 -3
- package/src/commons/Header/__test__/HeaderCT.test.js +3 -3
- package/src/commons/IconComponent/index.js +1 -1
- package/src/commons/ImagePicker/__test__/ImagePicker.test.js +5 -5
- package/src/commons/MediaPlayerDetail/__test__/MediaPlayerDetail.test.js +6 -4
- package/src/commons/OneTapTemplate/__test__/StatesGridActionTemplate.test.js +5 -5
- package/src/commons/Popover/__test__/index.test.js +3 -3
- package/src/commons/Processing/__test__/Connecting.test.js +4 -4
- package/src/commons/SelectUnit/__test__/SelectUnit.test.js +5 -5
- package/src/commons/SubUnit/OneTap/index.js +9 -8
- package/src/commons/SubUnit/__test__/ShortDetail.test.js +8 -8
- package/src/commons/Widgets/IFrame/__tests__/IFrame.test.js +9 -13
- package/src/hooks/Common/__test__/useAndroidTranslucentStatusBar.test.js +5 -5
- package/src/hooks/IoT/__test__/useHomeAssistantConnection.test.js +12 -12
- package/src/hooks/IoT/__test__/useWatchConfigs.test.js +3 -3
- package/src/hooks/IoT/useRemoteControl.js +6 -6
- package/src/hooks/useMqtt.js +2 -2
- package/src/iot/RemoteControl/Internet.js +2 -2
- package/src/iot/RemoteControl/__test__/Internet.test.js +7 -7
- package/src/screens/AddLocationMaps/__test__/index.test.js +12 -12
- package/src/screens/AddNewGateway/ShareWifiPassword.js +16 -15
- package/src/screens/AddNewGateway/__test__/AddNewGateway.test.js +7 -7
- package/src/screens/AddNewGateway/__test__/ConnectingWifiDevice.test.js +8 -8
- package/src/screens/AddNewGateway/__test__/ConnectingZigbeeDevice.test.js +7 -7
- package/src/screens/AddNewGateway/__test__/RenameNewDevices.test.js +8 -8
- package/src/screens/AddNewGateway/__test__/ScanGatewayQR.test.js +5 -5
- package/src/screens/AddNewGateway/__test__/SelectDeviceUnit.test.js +4 -4
- package/src/screens/AddNewGateway/__test__/SelectModbusGateway.test.js +6 -6
- package/src/screens/AddNewGateway/__test__/SelectZigbeeGateway.test.js +6 -6
- package/src/screens/AddNewGateway/__test__/ShareWifiPassword.test.js +0 -4
- package/src/screens/AddNewGateway/hooks/__Tests__/useWifiManage.test.js +2 -2
- package/src/screens/AllGateway/DetailConfigActionModbus/__test__/index.test.js +6 -6
- package/src/screens/AllGateway/DeviceInternalDetail/__test__/index.test.js +19 -17
- package/src/screens/AllGateway/DeviceModbusDetail/__test__/index.test.js +19 -17
- package/src/screens/AllGateway/DeviceZigbeeDetail/__test__/index.test.js +18 -16
- package/src/screens/AllGateway/GatewayDetail/__test__/index.test.js +43 -35
- package/src/screens/AllGateway/GatewayInfo/__test__/index.test.js +13 -13
- package/src/screens/AllGateway/__test__/index.test.js +6 -6
- package/src/screens/AllGateway/components/Detail/__test__/index.test.js +3 -5
- package/src/screens/AllGateway/components/GatewayItem/__test__/index.test.js +3 -3
- package/src/screens/AllGateway/components/TabPaneCT/__test__/index.test.js +6 -6
- package/src/screens/AllGateway/hooks/__test__/index.test.js +2 -2
- package/src/screens/AllGateway/test-utils.js +3 -4
- package/src/screens/Automate/AddNewAction/NewActionWrapper.js +7 -7
- package/src/screens/Automate/AddNewAction/SelectControlDevices.js +3 -3
- package/src/screens/Automate/AddNewAction/__test__/ChooseAction.test.js +13 -13
- package/src/screens/Automate/AddNewAction/__test__/SelectControlDevices.test.js +14 -8
- package/src/screens/Automate/AddNewAction/__test__/SelectMonitorDevices.test.js +13 -7
- package/src/screens/Automate/AddNewAction/__test__/SetupScriptDelay.test.js +9 -9
- package/src/screens/Automate/AddNewAction/__test__/SetupScriptNotify.test.js +10 -10
- package/src/screens/Automate/AddNewAutoSmart/AddTypeSmart.js +4 -3
- package/src/screens/Automate/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +13 -8
- package/src/screens/Automate/EditActionsList/__tests__/UpdateActionScript.test.js +8 -8
- package/src/screens/Automate/EditActionsList/__tests__/UpdateDelayScript.test.js +6 -6
- package/src/screens/Automate/EditActionsList/__tests__/UpdateNotifyScript.test.js +7 -7
- package/src/screens/Automate/EditActionsList/index.js +19 -17
- package/src/screens/Automate/OneTap/__test__/AddNewOneTap.test.js +16 -7
- package/src/screens/Automate/Scenario/__test__/AddNewOneTap.test.js +15 -7
- package/src/screens/Automate/ScriptDetail/Components/RenameScript.js +4 -7
- package/src/screens/Automate/ScriptDetail/__test__/index.test.js +1 -1
- package/src/screens/Automate/ScriptDetail/__test__/useStarredScript.test.js +6 -6
- package/src/screens/Automate/ScriptDetail/index.js +18 -18
- package/src/screens/Automate/SetSchedule/__test__/SelectWeekday.test.js +4 -4
- package/src/screens/Automate/SetSchedule/__test__/index.test.js +28 -18
- package/src/screens/Automate/SetSchedule/index.js +7 -7
- package/src/screens/ChangePosition/__test__/index.test.js +6 -6
- package/src/screens/ChangePosition/index.js +2 -1
- package/src/screens/Device/EditDevice/__test__/EditDevice.test.js +9 -9
- package/src/screens/Device/__test__/detail.test.js +12 -12
- package/src/screens/Device/__test__/mqttDetail.test.js +9 -9
- package/src/screens/Device/components/SensorDisplayItem.js +5 -5
- package/src/screens/Drawer/Drawer.test.js +2 -2
- package/src/screens/EmergencyContacts/__test__/EmergencyContactsSelectContacts.test.js +7 -7
- package/src/screens/EnterPassword/__test__/EnterPassword.test.js +8 -8
- package/src/screens/GuestInfo/components/__test__/AccessScheduleSheet.test.js +3 -3
- package/src/screens/HanetCamera/__test__/Detail.test.js +9 -9
- package/src/screens/HanetCamera/__test__/MemberInfo.test.js +10 -10
- package/src/screens/MoveToAnotherSubUnit/__test__/index.test.js +9 -9
- package/src/screens/Notification/__test__/Notification.test.js +9 -9
- package/src/screens/Notification/components/NotificationItem.js +1 -2
- package/src/screens/Notification/styles/NotificationItemStyles.js +0 -1
- package/src/screens/PlayBackCamera/__test__/index.test.js +1 -1
- package/src/screens/ScanChipQR/components/QRScan/__test__/QRScan.test.js +1 -1
- package/src/screens/SelectUnit/__test__/index.test.js +7 -7
- package/src/screens/Sharing/__test__/UpdateShareDevice.test.js +7 -7
- package/src/screens/SideMenuDetail/__test__/index.test.js +8 -8
- package/src/screens/SmartAccount/Connecting/index.js +5 -5
- package/src/screens/SmartAccount/ListDevice/__test__/ListDevice.test.js +8 -8
- package/src/screens/SmartAccount/SuccessfullyConnected/__test__/SuccessfullyConnected.test.js +7 -7
- package/src/screens/SmartAccount/__test__/Connecting.test.js +6 -6
- package/src/screens/SmartAccount/__test__/SmartAccount.test.js +10 -10
- package/src/screens/SubUnit/AddSubUnit.js +2 -4
- package/src/screens/SubUnit/__test__/AddSubUnit.test.js +9 -11
- package/src/screens/Template/EditTemplate.js +6 -4
- package/src/screens/Template/__test__/EditTemplate.test.js +7 -7
- package/src/screens/Template/__test__/detail.test.js +4 -4
- package/src/screens/Template/__test__/index.test.js +1 -1
- package/src/screens/Unit/Station/__test__/index.test.js +1 -1
- package/src/screens/Unit/__test__/SelectAddToFavorites.test.js +9 -9
- package/src/screens/Unit/__test__/SelectAddress.test.js +11 -17
- package/src/screens/Unit/__test__/Summaries.test.js +7 -7
- package/src/screens/Unit/components/__test__/AutomateScript.test.js +3 -3
- package/src/screens/Unit/components/__test__/SharedUnit.test.js +8 -8
- package/src/screens/Unit/hook/__test__/useUnitConnectRemoteDevices.test.js +2 -2
- package/src/utils/__test__/Utils.test.js +16 -16
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { create, act } from 'react-test-renderer';
|
|
3
|
-
import MockAdapter from 'axios-mock-adapter';
|
|
4
|
-
import { useRoute } from '@react-navigation/native';
|
|
5
1
|
import SegmentedControl from '@react-native-segmented-control/segmented-control';
|
|
2
|
+
import { useRoute } from '@react-navigation/native';
|
|
3
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
4
|
+
import React from 'react';
|
|
6
5
|
import Toast from 'react-native-toast-message';
|
|
6
|
+
import { act, create } from 'react-test-renderer';
|
|
7
7
|
|
|
8
|
-
import { SCProvider } from '../../../../context';
|
|
9
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
10
8
|
import DeviceModbusDetail from '..';
|
|
11
9
|
import { HeaderCustom } from '../../../../commons';
|
|
12
|
-
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
13
|
-
import Routes from '../../../../utils/Route';
|
|
14
|
-
import TabPaneCT from '../../components/TabPaneCT';
|
|
15
10
|
import MenuActionMore from '../../../../commons/MenuActionMore';
|
|
16
|
-
import
|
|
11
|
+
import ModalPopupCT from '../../../../commons/ModalPopupCT';
|
|
17
12
|
import { API } from '../../../../configs';
|
|
18
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
AccessibilityLabel,
|
|
15
|
+
PERMISSION_TYPE,
|
|
16
|
+
} from '../../../../configs/Constants';
|
|
17
|
+
import { SCProvider } from '../../../../context';
|
|
18
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
19
|
+
import api from '../../../../utils/Apis/axios';
|
|
20
|
+
import Routes from '../../../../utils/Route';
|
|
19
21
|
import Detail from '../../components/Detail';
|
|
20
|
-
import
|
|
22
|
+
import TabPaneCT from '../../components/TabPaneCT';
|
|
21
23
|
import { fetchGatewayCT, flushPromises } from '../../test-utils';
|
|
22
24
|
|
|
23
25
|
const mock = new MockAdapter(api.axiosInstance);
|
|
@@ -141,8 +143,8 @@ describe('Test DeviceModbusDetail', () => {
|
|
|
141
143
|
});
|
|
142
144
|
await flushPromises();
|
|
143
145
|
|
|
144
|
-
expect(global.mockedPop).
|
|
145
|
-
expect(Toast.show).
|
|
146
|
+
expect(global.mockedPop).toHaveBeenCalledWith(1);
|
|
147
|
+
expect(Toast.show).toHaveBeenCalledWith({
|
|
146
148
|
position: 'bottom',
|
|
147
149
|
text1: 'Delete successfully!',
|
|
148
150
|
text2: undefined,
|
|
@@ -228,7 +230,7 @@ describe('Test DeviceModbusDetail', () => {
|
|
|
228
230
|
await act(async () => {
|
|
229
231
|
await detail.props.onPressRow(1);
|
|
230
232
|
});
|
|
231
|
-
expect(global.mockedNavigate).
|
|
233
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
232
234
|
Routes.DetailConfigActionModbus,
|
|
233
235
|
{
|
|
234
236
|
gatewayId: 1,
|
|
@@ -262,7 +264,7 @@ describe('Test DeviceModbusDetail', () => {
|
|
|
262
264
|
await act(async () => {
|
|
263
265
|
await detail.props.onPressRow(1);
|
|
264
266
|
});
|
|
265
|
-
expect(global.mockedNavigate).
|
|
267
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
266
268
|
Routes.DetailConfigActionModbus,
|
|
267
269
|
{
|
|
268
270
|
gatewayId: 1,
|
|
@@ -289,7 +291,7 @@ describe('Test DeviceModbusDetail', () => {
|
|
|
289
291
|
await act(async () => {
|
|
290
292
|
await detail.props.onPressRow(1);
|
|
291
293
|
});
|
|
292
|
-
expect(global.mockedNavigate).
|
|
294
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
293
295
|
Routes.DetailConfigActionModbus,
|
|
294
296
|
{
|
|
295
297
|
gatewayId: 1,
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { create, act } from 'react-test-renderer';
|
|
3
|
-
import MockAdapter from 'axios-mock-adapter';
|
|
4
|
-
import Toast from 'react-native-toast-message';
|
|
5
1
|
import SegmentedControl from '@react-native-segmented-control/segmented-control';
|
|
6
2
|
import { useRoute } from '@react-navigation/native';
|
|
3
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import Toast from 'react-native-toast-message';
|
|
6
|
+
import { act, create } from 'react-test-renderer';
|
|
7
7
|
|
|
8
|
-
import { SCProvider } from '../../../../context';
|
|
9
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
10
8
|
import DeviceZigbeeDetail from '..';
|
|
11
9
|
import { HeaderCustom } from '../../../../commons';
|
|
12
|
-
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
13
|
-
import Routes from '../../../../utils/Route';
|
|
14
|
-
import TabPaneCT from '../../components/TabPaneCT';
|
|
15
10
|
import MenuActionMore from '../../../../commons/MenuActionMore';
|
|
16
|
-
import
|
|
11
|
+
import ModalPopupCT from '../../../../commons/ModalPopupCT';
|
|
17
12
|
import { API } from '../../../../configs';
|
|
18
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
AccessibilityLabel,
|
|
15
|
+
PERMISSION_TYPE,
|
|
16
|
+
} from '../../../../configs/Constants';
|
|
17
|
+
import { SCProvider } from '../../../../context';
|
|
18
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
19
|
+
import api from '../../../../utils/Apis/axios';
|
|
20
|
+
import Routes from '../../../../utils/Route';
|
|
19
21
|
import Detail from '../../components/Detail';
|
|
20
|
-
import
|
|
22
|
+
import TabPaneCT from '../../components/TabPaneCT';
|
|
21
23
|
import { fetchGatewayCT } from '../../test-utils';
|
|
22
24
|
|
|
23
25
|
const mock = new MockAdapter(api.axiosInstance);
|
|
@@ -127,8 +129,8 @@ describe('Test DeviceZigbeeDetail', () => {
|
|
|
127
129
|
await modal.props.onPressConfirm();
|
|
128
130
|
});
|
|
129
131
|
|
|
130
|
-
expect(global.mockedPop).
|
|
131
|
-
expect(Toast.show).
|
|
132
|
+
expect(global.mockedPop).toHaveBeenCalledWith(1);
|
|
133
|
+
expect(Toast.show).toHaveBeenCalledWith({
|
|
132
134
|
position: 'bottom',
|
|
133
135
|
text1: 'Delete successfully!',
|
|
134
136
|
text2: undefined,
|
|
@@ -184,7 +186,7 @@ describe('Test DeviceZigbeeDetail', () => {
|
|
|
184
186
|
await act(async () => {
|
|
185
187
|
await detail.props.onPressRow(1);
|
|
186
188
|
});
|
|
187
|
-
expect(global.mockedNavigate).
|
|
189
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
188
190
|
Routes.DetailConfigActionZigbee,
|
|
189
191
|
{
|
|
190
192
|
gatewayId: 1,
|
|
@@ -211,7 +213,7 @@ describe('Test DeviceZigbeeDetail', () => {
|
|
|
211
213
|
await act(async () => {
|
|
212
214
|
await detail.props.onPressRow(1);
|
|
213
215
|
});
|
|
214
|
-
expect(global.mockedNavigate).
|
|
216
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
215
217
|
Routes.DetailConfigActionZigbee,
|
|
216
218
|
{
|
|
217
219
|
gatewayId: 1,
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { create, act } from 'react-test-renderer';
|
|
3
|
-
import Toast from 'react-native-toast-message';
|
|
4
1
|
import SegmentedControl from '@react-native-segmented-control/segmented-control';
|
|
5
2
|
import { useRoute } from '@react-navigation/native';
|
|
6
3
|
import MockAdapter from 'axios-mock-adapter';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import Toast from 'react-native-toast-message';
|
|
6
|
+
import { act, create } from 'react-test-renderer';
|
|
7
7
|
|
|
8
|
-
import { SCProvider } from '../../../../context';
|
|
9
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
10
8
|
import GatewayDetail from '..';
|
|
11
9
|
import { HeaderCustom } from '../../../../commons';
|
|
12
|
-
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
13
|
-
import Routes from '../../../../utils/Route';
|
|
14
|
-
import TabPaneCT from '../../components/TabPaneCT';
|
|
15
10
|
import MenuActionMore from '../../../../commons/MenuActionMore';
|
|
16
|
-
import
|
|
11
|
+
import ModalPopupCT from '../../../../commons/ModalPopupCT';
|
|
17
12
|
import { API } from '../../../../configs';
|
|
18
|
-
import { DEVICE_TYPE } from '../../../../configs/Constants';
|
|
13
|
+
import { AccessibilityLabel, DEVICE_TYPE } from '../../../../configs/Constants';
|
|
14
|
+
import { SCProvider } from '../../../../context';
|
|
15
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
16
|
+
import api from '../../../../utils/Apis/axios';
|
|
17
|
+
import Routes from '../../../../utils/Route';
|
|
19
18
|
import Detail from '../../components/Detail';
|
|
20
|
-
import
|
|
19
|
+
import TabPaneCT from '../../components/TabPaneCT';
|
|
21
20
|
import { flushPromises } from '../../test-utils';
|
|
22
21
|
|
|
23
22
|
const mock = new MockAdapter(api.axiosInstance);
|
|
@@ -149,7 +148,7 @@ describe('Test GatewayDetail', () => {
|
|
|
149
148
|
await act(async () => {
|
|
150
149
|
await modal.props.onPressConfirm();
|
|
151
150
|
});
|
|
152
|
-
expect(global.mockedPop).
|
|
151
|
+
expect(global.mockedPop).toHaveBeenCalledWith(1);
|
|
153
152
|
});
|
|
154
153
|
|
|
155
154
|
it('test render GatewayDetail onPress more and onPress Delete', async () => {
|
|
@@ -170,7 +169,7 @@ describe('Test GatewayDetail', () => {
|
|
|
170
169
|
await act(async () => {
|
|
171
170
|
await modal.props.onPressConfirm();
|
|
172
171
|
});
|
|
173
|
-
expect(global.mockedPop).
|
|
172
|
+
expect(global.mockedPop).toHaveBeenCalledWith(1);
|
|
174
173
|
});
|
|
175
174
|
|
|
176
175
|
it('test render GatewayDetail onPress TabPanel internal', async () => {
|
|
@@ -221,13 +220,16 @@ describe('Test GatewayDetail', () => {
|
|
|
221
220
|
await act(async () => {
|
|
222
221
|
await detail.props.onPressRow(1);
|
|
223
222
|
});
|
|
224
|
-
expect(global.mockedNavigate).
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
223
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
224
|
+
Routes.DeviceInternalDetail,
|
|
225
|
+
{
|
|
226
|
+
device: 1,
|
|
227
|
+
gatewayId: 1,
|
|
228
|
+
isInternal: true,
|
|
229
|
+
isModbus: false,
|
|
230
|
+
isZigbee: false,
|
|
231
|
+
}
|
|
232
|
+
);
|
|
231
233
|
});
|
|
232
234
|
|
|
233
235
|
it('test render GatewayDetail onPress TabPanel zigbee onPressRow', async () => {
|
|
@@ -235,13 +237,16 @@ describe('Test GatewayDetail', () => {
|
|
|
235
237
|
await act(async () => {
|
|
236
238
|
await detail.props.onPressRow(1);
|
|
237
239
|
});
|
|
238
|
-
expect(global.mockedNavigate).
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
241
|
+
Routes.DeviceZigbeeDetail,
|
|
242
|
+
{
|
|
243
|
+
device: 1,
|
|
244
|
+
gatewayId: 1,
|
|
245
|
+
isInternal: false,
|
|
246
|
+
isModbus: false,
|
|
247
|
+
isZigbee: true,
|
|
248
|
+
}
|
|
249
|
+
);
|
|
245
250
|
});
|
|
246
251
|
|
|
247
252
|
it('test render GatewayDetail onPress TabPanel modbus onPressRow', async () => {
|
|
@@ -250,13 +255,16 @@ describe('Test GatewayDetail', () => {
|
|
|
250
255
|
await act(async () => {
|
|
251
256
|
await detail.props.onPressRow(1);
|
|
252
257
|
});
|
|
253
|
-
expect(global.mockedNavigate).
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
259
|
+
Routes.DeviceModbusDetail,
|
|
260
|
+
{
|
|
261
|
+
device: 1,
|
|
262
|
+
gatewayId: 1,
|
|
263
|
+
isInternal: false,
|
|
264
|
+
isModbus: true,
|
|
265
|
+
isZigbee: false,
|
|
266
|
+
}
|
|
267
|
+
);
|
|
260
268
|
});
|
|
261
269
|
|
|
262
270
|
it('test render GatewayDetail onPress TabPanel error onPressRow', async () => {
|
|
@@ -274,7 +282,7 @@ describe('Test GatewayDetail', () => {
|
|
|
274
282
|
await act(async () => {
|
|
275
283
|
await detail.props.onPressRow(1);
|
|
276
284
|
});
|
|
277
|
-
expect(global.mockedNavigate).
|
|
285
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith('', {
|
|
278
286
|
device: 1,
|
|
279
287
|
gatewayId: null,
|
|
280
288
|
isInternal: false,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { useRoute } from '@react-navigation/native';
|
|
2
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import { create, act } from 'react-test-renderer';
|
|
3
4
|
import { FlatList } from 'react-native';
|
|
4
|
-
import
|
|
5
|
-
import { useRoute } from '@react-navigation/native';
|
|
5
|
+
import { act, create } from 'react-test-renderer';
|
|
6
6
|
|
|
7
|
-
import { SCProvider } from '../../../../context';
|
|
8
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
9
|
-
import { HeaderCustom, Text } from '../../../../commons';
|
|
10
|
-
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
11
|
-
import API from '../../../../configs/API';
|
|
12
|
-
import Routes from '../../../../utils/Route';
|
|
13
|
-
import api from '../../../../utils/Apis/axios';
|
|
14
7
|
import GatewayInfo from '..';
|
|
15
|
-
import
|
|
8
|
+
import { HeaderCustom, Text } from '../../../../commons';
|
|
16
9
|
import ModalPopupCT from '../../../../commons/ModalPopupCT';
|
|
17
10
|
import { SCConfig } from '../../../../configs';
|
|
11
|
+
import API from '../../../../configs/API';
|
|
12
|
+
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
13
|
+
import { SCProvider } from '../../../../context';
|
|
14
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
15
|
+
import t from '../../../../hooks/Common/useTranslations';
|
|
16
|
+
import api from '../../../../utils/Apis/axios';
|
|
17
|
+
import Routes from '../../../../utils/Route';
|
|
18
18
|
|
|
19
19
|
const mock = new MockAdapter(api.axiosInstance);
|
|
20
20
|
const wrapComponent = () => (
|
|
@@ -92,7 +92,7 @@ describe('Test GatewayInfo', () => {
|
|
|
92
92
|
await act(async () => {
|
|
93
93
|
btnConnect.props.onPress();
|
|
94
94
|
});
|
|
95
|
-
expect(global.mockedNavigate).
|
|
95
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(
|
|
96
96
|
Routes.GatewayConnectionMethods,
|
|
97
97
|
{
|
|
98
98
|
methodsConnection: [],
|
|
@@ -116,6 +116,6 @@ describe('Test GatewayInfo', () => {
|
|
|
116
116
|
await act(async () => {
|
|
117
117
|
await modal.props.onPressConfirm();
|
|
118
118
|
});
|
|
119
|
-
expect(global.mockedPop).
|
|
119
|
+
expect(global.mockedPop).toHaveBeenCalledWith(2);
|
|
120
120
|
});
|
|
121
121
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { FlatList } from 'react-native';
|
|
3
4
|
import { act, create } from 'react-test-renderer';
|
|
4
|
-
import MockAdapter from 'axios-mock-adapter';
|
|
5
5
|
|
|
6
|
+
import Gateway from '..';
|
|
7
|
+
import API from '../../../configs/API';
|
|
8
|
+
import { AccessibilityLabel } from '../../../configs/Constants';
|
|
6
9
|
import { SCProvider } from '../../../context';
|
|
7
10
|
import { mockSCStore } from '../../../context/mockStore';
|
|
8
|
-
import { AccessibilityLabel } from '../../../configs/Constants';
|
|
9
11
|
import api from '../../../utils/Apis/axios';
|
|
10
|
-
import GatewayItem from '../components/GatewayItem';
|
|
11
|
-
import API from '../../../configs/API';
|
|
12
12
|
import Routes from '../../../utils/Route';
|
|
13
|
-
import
|
|
13
|
+
import GatewayItem from '../components/GatewayItem';
|
|
14
14
|
const mock = new MockAdapter(api.axiosInstance);
|
|
15
15
|
|
|
16
16
|
const wrapComponent = (
|
|
@@ -58,7 +58,7 @@ describe('Test Gateway screen', () => {
|
|
|
58
58
|
await act(async () => {
|
|
59
59
|
await gatewayItems[0].props.onPress();
|
|
60
60
|
});
|
|
61
|
-
expect(global.mockedNavigate).
|
|
61
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(Routes.AllGatewayStack, {
|
|
62
62
|
params: {
|
|
63
63
|
item: {
|
|
64
64
|
id: 1,
|
|
@@ -48,12 +48,10 @@ describe('Test Detail', () => {
|
|
|
48
48
|
const instance = tree.root;
|
|
49
49
|
const menuActionMore = instance.findAllByType(MenuActionMore);
|
|
50
50
|
await act(async () => {
|
|
51
|
-
jest.runAllTimers();
|
|
52
51
|
await menuActionMore[0].props.onItemClick(listMenuItem[0]);
|
|
53
|
-
jest.
|
|
52
|
+
jest.runAllTimers();
|
|
54
53
|
});
|
|
55
|
-
expect(mockDoAction).
|
|
56
|
-
jest.useRealTimers();
|
|
54
|
+
expect(mockDoAction).toHaveBeenCalledTimes(1);
|
|
57
55
|
});
|
|
58
56
|
|
|
59
57
|
it('test render Detail and MenuActionMore onPress android', async () => {
|
|
@@ -69,6 +67,6 @@ describe('Test Detail', () => {
|
|
|
69
67
|
await act(async () => {
|
|
70
68
|
await menuActionMore[0].props.onItemClick(listMenuItem[0]);
|
|
71
69
|
});
|
|
72
|
-
expect(mockDoAction).
|
|
70
|
+
expect(mockDoAction).toHaveBeenCalledTimes(1);
|
|
73
71
|
});
|
|
74
72
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { create, act } from 'react-test-renderer';
|
|
3
2
|
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { act, create } from 'react-test-renderer';
|
|
4
4
|
|
|
5
|
+
import GatewayItem from '..';
|
|
5
6
|
import { SCProvider } from '../../../../../context';
|
|
6
7
|
import { mockSCStore } from '../../../../../context/mockStore';
|
|
7
|
-
import GatewayItem from '..';
|
|
8
8
|
|
|
9
9
|
const mockOnPressItem = jest.fn();
|
|
10
10
|
|
|
@@ -67,6 +67,6 @@ describe('Test GatewayItem', () => {
|
|
|
67
67
|
await act(async () => {
|
|
68
68
|
await buttons[0].props.onPress();
|
|
69
69
|
});
|
|
70
|
-
expect(mockOnPressItem).
|
|
70
|
+
expect(mockOnPressItem).toHaveBeenCalledTimes(1);
|
|
71
71
|
});
|
|
72
72
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { create, act } from 'react-test-renderer';
|
|
3
1
|
import SegmentedControl from '@react-native-segmented-control/segmented-control';
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import Carousel from 'react-native-new-snap-carousel';
|
|
4
|
+
import { act, create } from 'react-test-renderer';
|
|
5
5
|
|
|
6
|
+
import TabPaneCT from '..';
|
|
7
|
+
import { DEVICE_TYPE } from '../../../../../configs/Constants';
|
|
6
8
|
import { SCProvider } from '../../../../../context';
|
|
7
9
|
import { mockSCStore } from '../../../../../context/mockStore';
|
|
8
|
-
import { DEVICE_TYPE } from '../../../../../configs/Constants';
|
|
9
|
-
import TabPaneCT from '..';
|
|
10
10
|
|
|
11
11
|
const mockSetSelectedIndex = jest.fn();
|
|
12
12
|
const wrapComponent = (item = []) => (
|
|
@@ -58,7 +58,7 @@ describe('Test TabPaneCT', () => {
|
|
|
58
58
|
nativeEvent: { selectedSegmentIndex: 1 },
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
expect(mockSetSelectedIndex).
|
|
61
|
+
expect(mockSetSelectedIndex).toHaveBeenCalledWith(1);
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
it('test render TabPaneCT onChange Carousel', async () => {
|
|
@@ -72,7 +72,7 @@ describe('Test TabPaneCT', () => {
|
|
|
72
72
|
await act(async () => {
|
|
73
73
|
await carousel[0].props.onSnapToItem(1);
|
|
74
74
|
});
|
|
75
|
-
expect(mockSetSelectedIndex).
|
|
75
|
+
expect(mockSetSelectedIndex).toHaveBeenCalledWith(1);
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
it('test render TabPaneCT none list', async () => {
|
|
@@ -2,8 +2,8 @@ import { act, renderHook } from '@testing-library/react-hooks';
|
|
|
2
2
|
import MockAdapter from 'axios-mock-adapter';
|
|
3
3
|
import Toast from 'react-native-toast-message';
|
|
4
4
|
|
|
5
|
-
import api from '../../../../utils/Apis/axios';
|
|
6
5
|
import { API } from '../../../../configs';
|
|
6
|
+
import api from '../../../../utils/Apis/axios';
|
|
7
7
|
import { useGateway } from '../useGateway';
|
|
8
8
|
|
|
9
9
|
const mock = new MockAdapter(api.axiosInstance);
|
|
@@ -98,7 +98,7 @@ describe('Test useGateway', () => {
|
|
|
98
98
|
await act(async () => {
|
|
99
99
|
await hook.result.current.deleteGatewayDetail(1);
|
|
100
100
|
});
|
|
101
|
-
expect(Toast.show).
|
|
101
|
+
expect(Toast.show).toHaveBeenCalledWith({
|
|
102
102
|
position: 'bottom',
|
|
103
103
|
text1: 'Delete successfully!',
|
|
104
104
|
text2: undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Detail from './components/Detail';
|
|
2
|
-
import TabPaneCT from './components/TabPaneCT';
|
|
3
1
|
import SegmentedControl from '@react-native-segmented-control/segmented-control';
|
|
4
2
|
import { act } from 'react-test-renderer';
|
|
3
|
+
import Detail from './components/Detail';
|
|
4
|
+
import TabPaneCT from './components/TabPaneCT';
|
|
5
5
|
|
|
6
6
|
export const fetchGatewayCT = async (tree) => {
|
|
7
7
|
const instance = tree.root;
|
|
@@ -16,5 +16,4 @@ export const fetchGatewayCT = async (tree) => {
|
|
|
16
16
|
return { tabPaneCT, detail };
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export const flushPromises = () =>
|
|
20
|
-
new Promise((resolve) => setImmediate(resolve));
|
|
19
|
+
export const flushPromises = () => new Promise(process.nextTick);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { KeyboardAwareScrollView } from '@eohjsc/react-native-keyboard-aware-scroll-view';
|
|
1
2
|
import React, { useCallback, useMemo } from 'react';
|
|
2
3
|
import { TouchableOpacity, View } from 'react-native';
|
|
3
|
-
import { KeyboardAwareScrollView } from '@eohjsc/react-native-keyboard-aware-scroll-view';
|
|
4
4
|
|
|
5
|
-
import styles from './Styles/SelectActionStyles';
|
|
6
|
-
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
7
|
-
import { Colors } from '../../../configs';
|
|
8
5
|
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
6
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
7
|
+
import { FullLoading, HeaderCustom } from '../../../commons';
|
|
9
8
|
import BottomButtonView from '../../../commons/BottomButtonView';
|
|
9
|
+
import { Colors } from '../../../configs';
|
|
10
10
|
import { AccessibilityLabel } from '../../../configs/Constants';
|
|
11
|
-
import
|
|
11
|
+
import styles from './Styles/SelectActionStyles';
|
|
12
12
|
|
|
13
13
|
const NewActionWrapper = ({
|
|
14
14
|
name,
|
|
@@ -25,8 +25,8 @@ const NewActionWrapper = ({
|
|
|
25
25
|
const { closeScreen } = params;
|
|
26
26
|
|
|
27
27
|
const handleClose = useCallback(() => {
|
|
28
|
-
navigate(closeScreen);
|
|
29
|
-
}, [closeScreen, navigate]);
|
|
28
|
+
navigate(closeScreen, params);
|
|
29
|
+
}, [closeScreen, navigate, params]);
|
|
30
30
|
|
|
31
31
|
const rightComponent = useMemo(
|
|
32
32
|
() => (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
1
|
import { useNavigation } from '@react-navigation/native';
|
|
3
|
-
import {
|
|
2
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
4
3
|
import { API } from '../../../configs';
|
|
4
|
+
import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
5
|
+
import { fetchWithCache } from '../../../utils/Apis/axios';
|
|
5
6
|
import Routes from '../../../utils/Route';
|
|
6
7
|
import SelectDevices from './Components/SelectDevices';
|
|
7
|
-
import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
8
8
|
|
|
9
9
|
const SelectControlDevices = ({ route }) => {
|
|
10
10
|
const t = useTranslations();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import renderer, { act } from 'react-test-renderer';
|
|
3
|
-
import MockAdapter from 'axios-mock-adapter';
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
5
|
+
import { useNavigation } from '@react-navigation/native';
|
|
6
|
+
import { TouchableOpacity } from 'react-native';
|
|
8
7
|
import BottomButtonView from '../../../../commons/BottomButtonView';
|
|
8
|
+
import SelectActionCard from '../../../../commons/SelectActionCard';
|
|
9
|
+
import { API } from '../../../../configs';
|
|
9
10
|
import { AccessibilityLabel, DEVICE_TYPE } from '../../../../configs/Constants';
|
|
11
|
+
import { SCProvider } from '../../../../context';
|
|
12
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
10
13
|
import api from '../../../../utils/Apis/axios';
|
|
11
|
-
import { API } from '../../../../configs';
|
|
12
|
-
import { TouchableOpacity } from 'react-native';
|
|
13
|
-
import SelectActionCard from '../../../../commons/SelectActionCard';
|
|
14
|
-
import { useNavigation } from '@react-navigation/native';
|
|
15
|
-
import { ToastBottomHelper } from '../../../../utils/Utils';
|
|
16
14
|
import { getTranslate } from '../../../../utils/I18n';
|
|
15
|
+
import { ToastBottomHelper } from '../../../../utils/Utils';
|
|
16
|
+
import ChooseAction from '../ChooseAction';
|
|
17
17
|
|
|
18
18
|
const mock = new MockAdapter(api.axiosInstance);
|
|
19
19
|
|
|
@@ -162,7 +162,7 @@ describe('Test ChooseAction', () => {
|
|
|
162
162
|
is_on_value: 1,
|
|
163
163
|
action: '800ff454-4e2a-4a38-bad6-1bded728193e',
|
|
164
164
|
allow_config_store_value: true,
|
|
165
|
-
icon: '
|
|
165
|
+
icon: 'upcircle',
|
|
166
166
|
icon_kit: 41,
|
|
167
167
|
text: 'Auto',
|
|
168
168
|
},
|
|
@@ -391,7 +391,7 @@ describe('Test ChooseAction', () => {
|
|
|
391
391
|
await act(async () => {
|
|
392
392
|
tree = await renderer.create(wrapComponent(route));
|
|
393
393
|
});
|
|
394
|
-
expect(spyToastError).
|
|
394
|
+
expect(spyToastError).toHaveBeenCalledWith(
|
|
395
395
|
getTranslate('en', 'template_not_supported', {
|
|
396
396
|
template: response[0].template,
|
|
397
397
|
}),
|
|
@@ -459,7 +459,7 @@ describe('Test ChooseAction', () => {
|
|
|
459
459
|
await buttonSave.props.onPress();
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
-
expect(spyToastError).
|
|
462
|
+
expect(spyToastError).toHaveBeenCalledWith(
|
|
463
463
|
'You can only add more 0 action',
|
|
464
464
|
null,
|
|
465
465
|
3000
|
|
@@ -617,7 +617,7 @@ describe('Test ChooseAction', () => {
|
|
|
617
617
|
await buttonSave.props.onPress();
|
|
618
618
|
});
|
|
619
619
|
|
|
620
|
-
expect(spyToastError).
|
|
620
|
+
expect(spyToastError).toHaveBeenCalledWith(
|
|
621
621
|
'You can only add more 2 actions',
|
|
622
622
|
null,
|
|
623
623
|
3000
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
2
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
1
3
|
import React from 'react';
|
|
4
|
+
import { TouchableOpacity } from 'react-native';
|
|
2
5
|
import renderer, { act } from 'react-test-renderer';
|
|
3
|
-
import MockAdapter from 'axios-mock-adapter';
|
|
4
|
-
import { SCProvider } from '../../../../context';
|
|
5
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
6
|
-
import Device from '../Device';
|
|
7
6
|
import NavBar from '../../../../commons/NavBar';
|
|
8
7
|
import API from '../../../../configs/API';
|
|
9
8
|
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
9
|
+
import { SCProvider } from '../../../../context';
|
|
10
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
12
11
|
import api from '../../../../utils/Apis/axios';
|
|
12
|
+
import Routes from '../../../../utils/Route';
|
|
13
|
+
import Device from '../Device';
|
|
13
14
|
import SelectControlDevices from '../SelectControlDevices';
|
|
14
|
-
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
15
15
|
|
|
16
16
|
const mock = new MockAdapter(api.axiosInstance);
|
|
17
17
|
|
|
@@ -108,6 +108,12 @@ describe('Test SelectMonitorDevices', () => {
|
|
|
108
108
|
await act(async () => {
|
|
109
109
|
iconClose[0].props.onPress();
|
|
110
110
|
});
|
|
111
|
-
expect(global.mockedNavigate).toHaveBeenCalledWith(Routes.ScriptDetail
|
|
111
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith(Routes.ScriptDetail, {
|
|
112
|
+
automate: { sensor_id: 1 },
|
|
113
|
+
automateId: 1,
|
|
114
|
+
closeScreen: 'ScriptDetail',
|
|
115
|
+
scriptName: 'scriptName test',
|
|
116
|
+
unitId: 1,
|
|
117
|
+
});
|
|
112
118
|
});
|
|
113
119
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import renderer, { act } from 'react-test-renderer';
|
|
3
|
-
import MockAdapter from 'axios-mock-adapter';
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { mockSCStore } from '../../../../context/mockStore';
|
|
5
|
+
import { useRoute } from '@react-navigation/native';
|
|
6
|
+
import { TouchableOpacity } from 'react-native';
|
|
8
7
|
import API from '../../../../configs/API';
|
|
9
8
|
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
10
|
-
import {
|
|
9
|
+
import { SCProvider } from '../../../../context';
|
|
10
|
+
import { mockSCStore } from '../../../../context/mockStore';
|
|
11
11
|
import api from '../../../../utils/Apis/axios';
|
|
12
|
-
import
|
|
12
|
+
import SelectMonitorDevices from '../SelectMonitorDevices';
|
|
13
13
|
|
|
14
14
|
const mock = new MockAdapter(api.axiosInstance);
|
|
15
15
|
|
|
@@ -70,6 +70,12 @@ describe('Test SelectMonitorDevices', () => {
|
|
|
70
70
|
await act(async () => {
|
|
71
71
|
iconClose[0].props.onPress();
|
|
72
72
|
});
|
|
73
|
-
expect(global.mockedNavigate).toHaveBeenCalledWith('closeScreen'
|
|
73
|
+
expect(global.mockedNavigate).toHaveBeenCalledWith('closeScreen', {
|
|
74
|
+
automate: { sensor_id: 1 },
|
|
75
|
+
automateId: null,
|
|
76
|
+
closeScreen: 'closeScreen',
|
|
77
|
+
scriptName: 'scriptName test',
|
|
78
|
+
unit: { id: 1, name: 'Unit test' },
|
|
79
|
+
});
|
|
74
80
|
});
|
|
75
81
|
});
|