Skip to content

Commit

Permalink
Merge pull request #616 from juanky201271/dev_refactoring_code
Browse files Browse the repository at this point in the history
Preparing next version: 1.3.7
  • Loading branch information
juanky201271 authored Mar 29, 2024
2 parents 21b4c82 + 9ce8e5b commit 6a76431
Show file tree
Hide file tree
Showing 63 changed files with 2,562 additions and 1,505 deletions.
2 changes: 2 additions & 0 deletions __tests__/LoadedApp.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ describe('Component LoadedApp - test', () => {
changeWalletScreen: true,
restoreWalletBackupScreen: true,
};
const selectServer = 'auto';
const receive = render(
<LoadedAppClass
navigation={navigationMock}
Expand All @@ -158,6 +159,7 @@ describe('Component LoadedApp - test', () => {
toggleTheme={toggleTheme}
addressBook={addressBook}
security={security}
selectServer={selectServer}
/>,
);
expect(receive.toJSON()).toMatchSnapshot();
Expand Down
2 changes: 2 additions & 0 deletions __tests__/LoadingApp.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ describe('Component LoadingApp - test', () => {
changeWalletScreen: true,
restoreWalletBackupScreen: true,
};
const selectServer = 'auto';
const receive = render(
<LoadingAppClass
navigation={navigationMock}
Expand All @@ -156,6 +157,7 @@ describe('Component LoadingApp - test', () => {
firstLaunchingMessage={firstLaunchingMessage}
toggleTheme={toggleTheme}
security={security}
selectServer={selectServer}
/>,
);
expect(receive.toJSON()).toMatchSnapshot();
Expand Down
2 changes: 2 additions & 0 deletions __tests__/Settings.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jest.mock('react-native', () => {

return RN;
});
jest.mock('react-native-picker-select', () => 'RNPickerSelect');
jest.useFakeTimers();

// test suite
Expand Down Expand Up @@ -137,6 +138,7 @@ describe('Component Settings - test', () => {
set_privacy_option={onSetOption}
set_mode_option={onSetOption}
set_security_option={onSetOption}
set_selectServer_option={onSetOption}
/>
</ContextAppLoadedProvider>,
);
Expand Down
100 changes: 100 additions & 0 deletions __tests__/__snapshots__/AddressBook.AbDetail.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,56 @@ exports[`Component Address Book Details - test Address Book Datails - Delete - s
}
}
>
<View
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<
color="#5a8c5a"
icon={
{
"icon": [
384,
512,
[
128473,
10005,
10006,
10060,
215,
"close",
"multiply",
"remove",
"times",
],
"f00d",
"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z",
],
"iconName": "xmark",
"prefix": "fas",
}
}
size={25}
style={
{
"marginRight": 5,
}
}
/>
</View>
<View
accessibilityLabel="translated text"
accessibilityState={
Expand Down Expand Up @@ -903,6 +953,56 @@ exports[`Component Address Book Details - test Address Book Datails - Modify - s
}
}
>
<View
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<
color="#5a8c5a"
icon={
{
"icon": [
384,
512,
[
128473,
10005,
10006,
10060,
215,
"close",
"multiply",
"remove",
"times",
],
"f00d",
"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z",
],
"iconName": "xmark",
"prefix": "fas",
}
}
size={25}
style={
{
"marginRight": 5,
}
}
/>
</View>
<View
accessibilityLabel="translated text"
accessibilityState={
Expand Down
52 changes: 51 additions & 1 deletion __tests__/__snapshots__/Memo.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`Component Memo - test Memo - snapshot 1`] = `
style={
{
"maxHeight": "70%",
"minHeight": "70%",
"minHeight": "50%",
}
}
>
Expand All @@ -37,6 +37,7 @@ exports[`Component Memo - test Memo - snapshot 1`] = `
"borderColor": "rgb(28, 28, 30)",
"borderRadius": 5,
"borderWidth": 1,
"flexDirection": "row",
"flexGrow": 1,
"maxHeight": 667,
"minHeight": 667,
Expand Down Expand Up @@ -73,6 +74,55 @@ memo8
memo9
memo10"
/>
<View
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<
icon={
{
"icon": [
384,
512,
[
128473,
10005,
10006,
10060,
215,
"close",
"multiply",
"remove",
"times",
],
"f00d",
"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z",
],
"iconName": "xmark",
"prefix": "fas",
}
}
size={25}
style={
{
"margin": 10,
}
}
/>
</View>
</View>
</View>
</RCTScrollView>
Expand Down
106 changes: 81 additions & 25 deletions __tests__/__snapshots__/Seed.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -988,41 +988,97 @@ exports[`Component Seed - test Seed Restore - snapshot 1`] = `
}
>
<View
accessibilityLabel="text translated"
accessible={true}
style={
{
"borderColor": "rgb(28, 28, 30)",
"borderRadius": 10,
"borderWidth": 1,
"margin": 0,
"maxHeight": "70%",
"maxWidth": "100%",
"minHeight": 100,
"minWidth": "95%",
"flexDirection": "row",
"justifyContent": "space-between",
}
}
>
<TextInput
editable={true}
multiline={true}
onChangeText={[Function]}
placeholder="text translated"
<View
accessibilityLabel="text translated"
accessible={true}
style={
{
"backgroundColor": "transparent",
"color": "rgb(28, 28, 30)",
"fontSize": 16,
"fontWeight": "600",
"marginLeft": 5,
"borderColor": "rgb(28, 28, 30)",
"borderRadius": 10,
"borderWidth": 1,
"flex": 1,
"margin": 0,
"minHeight": 100,
"minWidth": "95%",
"textAlignVertical": "top",
"width": "auto",
}
}
testID="seed.seedinput"
value="pepe lolo titi"
/>
>
<TextInput
editable={true}
multiline={true}
onChangeText={[Function]}
placeholder="text translated"
style={
{
"backgroundColor": "transparent",
"color": "rgb(28, 28, 30)",
"fontSize": 16,
"fontWeight": "600",
"marginLeft": 5,
"minHeight": 100,
"textAlignVertical": "top",
}
}
testID="seed.seedinput"
value="pepe lolo titi"
/>
</View>
<View
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<
icon={
{
"icon": [
384,
512,
[
128473,
10005,
10006,
10060,
215,
"close",
"multiply",
"remove",
"times",
],
"f00d",
"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z",
],
"iconName": "xmark",
"prefix": "fas",
}
}
size={25}
style={
{
"marginLeft": 5,
}
}
/>
</View>
</View>
</View>
<View
Expand Down
Loading

0 comments on commit 6a76431

Please sign in to comment.