@eohjsc/react-native-smart-city 0.7.18 → 0.7.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.7.18",
4
+ "version": "0.7.19",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -64,7 +64,9 @@ const SelectGateway = ({
64
64
  const { success, data } = await axiosGet(
65
65
  API.CHIP.GET_CHIPS_FROM_UNIT(unitId),
66
66
  {
67
- type,
67
+ params: {
68
+ type,
69
+ },
68
70
  }
69
71
  );
70
72
  if (success) {
@@ -158,17 +158,24 @@ describe('Test ScriptDetail', () => {
158
158
  tree = await create(wrapComponent(route));
159
159
  });
160
160
  const instance = tree.root;
161
+ const icon = instance.find(
162
+ (el) => el.props.accessibilityLabel === AccessibilityLabel.ICON_MORE
163
+ );
164
+
165
+ await act(async () => {
166
+ await icon.props.onPress();
167
+ });
161
168
  const menu = instance.find(
162
169
  (el) =>
163
170
  el.props.accessibilityLabel === AccessibilityLabel.MENU_POPPER_MORE
164
171
  );
172
+ expect(menu.props.isVisible).toBeTruthy();
165
173
  const alertAction = instance.findAllByType(AlertAction)[0];
166
174
  const rename = menu.props.listMenuItem[0];
167
175
 
168
176
  await act(async () => {
169
177
  await menu.props.onItemClick(rename);
170
178
  });
171
- expect(menu.props.isVisible).toBeFalsy();
172
179
  expect(alertAction.props.visible).toBeTruthy();
173
180
 
174
181
  const textInput = instance.findByType(_TextInput);
@@ -343,7 +343,9 @@ const ScriptDetail = ({ route }) => {
343
343
  const { success, data: listChip } = await axiosGet(
344
344
  API.DEV_MODE.GATEWAY.SHARED(),
345
345
  {
346
- unit: unit_id,
346
+ params: {
347
+ unit: unit_id,
348
+ },
347
349
  },
348
350
  true
349
351
  );