Skip to content

Commit

Permalink
Merge branch 'dev' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Aug 2, 2024
2 parents 650e844 + cc430d6 commit a89cd51
Show file tree
Hide file tree
Showing 56 changed files with 1,544 additions and 1,341 deletions.
1 change: 1 addition & 0 deletions __tests__/App.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jest.mock('react-native', () => {

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

// test suite
describe('Component App - test', () => {
Expand Down
2 changes: 0 additions & 2 deletions __tests__/Header.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ describe('Component Header - test', () => {
setComputingModalVisible={onFunction}
setBackgroundError={onFunction}
setPrivacyOption={onFunction}
//setPoolsToShieldSelectSapling={onFunction}
//setPoolsToShieldSelectTransparent={onFunction}
setUfvkViewModalVisible={onFunction}
addLastSnackbar={onFunction}
setShieldingAmount={onFunction}
Expand Down
4 changes: 0 additions & 4 deletions __tests__/History.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ describe('Component History - test', () => {
setZecPrice={onFunction}
setComputingModalVisible={onFunction}
setPrivacyOption={onFunction}
//setPoolsToShieldSelectSapling={onFunction}
//setPoolsToShieldSelectTransparent={onFunction}
setSendPageState={onFunction}
setShieldingAmount={onFunction}
setScrollToTop={onFunction}
Expand Down Expand Up @@ -148,8 +146,6 @@ describe('Component History - test', () => {
setZecPrice={onFunction}
setComputingModalVisible={onFunction}
setPrivacyOption={onFunction}
//setPoolsToShieldSelectSapling={onFunction}
//setPoolsToShieldSelectTransparent={onFunction}
setSendPageState={onFunction}
setShieldingAmount={onFunction}
setScrollToTop={onFunction}
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Insight.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Component Insight - test', () => {
const onClose = jest.fn();
const insight = render(
<ContextAppLoadedProvider value={state}>
<Insight closeModal={onClose} openModal={onClose} setPrivacyOption={onClose} setSendPageState={onClose} />
<Insight closeModal={onClose} setPrivacyOption={onClose} />
</ContextAppLoadedProvider>,
);
expect(insight.toJSON()).toMatchSnapshot();
Expand Down
1 change: 1 addition & 0 deletions __tests__/LoadedApp.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jest.mock('react-native-fs', () => ({
writeFile: jest.fn(() => Promise.resolve()), // o Promise.reject(new Error('Write failed'))
// Agrega más funciones mockeadas según sea necesario
}));
jest.mock('react-native-picker-select', () => 'RNPickerSelect');

// test suite
describe('Component LoadedApp - test', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Seed.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('Component Seed - test', () => {
contextLoading.translate = mockTranslate;
contextLoading.wallet = mockWallet;
contextLoading.info = mockInfo;
contextLoading.totalBalance = mockTotalBalance;
//contextLoading.totalBalance = mockTotalBalance;
test('Seed New - snapshot', () => {
const seed = render(
<ContextAppLoadingProvider value={contextLoading}>
Expand Down
4 changes: 0 additions & 4 deletions __tests__/Send.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ describe('Component Send - test', () => {
syncingStatusMoreInfoOnClick={onFunction}
setZecPrice={onFunction}
setPrivacyOption={onFunction}
//setPoolsToShieldSelectSapling={onFunction}
//setPoolsToShieldSelectTransparent={onFunction}
setShieldingAmount={onFunction}
setScrollToTop={onFunction}
/>
Expand Down Expand Up @@ -120,8 +118,6 @@ describe('Component Send - test', () => {
syncingStatusMoreInfoOnClick={onFunction}
setZecPrice={onFunction}
setPrivacyOption={onFunction}
//setPoolsToShieldSelectSapling={onFunction}
//setPoolsToShieldSelectTransparent={onFunction}
setShieldingAmount={onFunction}
setScrollToTop={onFunction}
/>
Expand Down
216 changes: 200 additions & 16 deletions __tests__/__snapshots__/LoadedApp.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,192 @@ exports[`Component LoadedApp - test LoadedApp - snapshot 1`] = `
]
}
>
<View>
<Text>
Loading...
</Text>
<View
style={
{
"height": "100%",
}
}
>
<RCTScrollView
contentContainerStyle={
{
"display": "flex",
}
}
scrollsToTop={false}
style={
{
"backgroundColor": "#010101",
"flex": 1,
"height": 1334,
"width": 750,
}
}
>
<View>
<Text
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 18,
"fontWeight": "600",
"marginLeft": 30,
"marginVertical": 10,
"opacity": 1,
}
}
>
text translated
</Text>
<View
style={
{
"backgroundColor": "rgb(0, 122, 255)",
"height": 1,
}
}
/>
<View
style={
{
"display": "flex",
"marginLeft": 20,
}
}
>
<Text
onPress={[Function]}
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 14,
"fontWeight": "600",
"opacity": 1,
"paddingTop": 25,
}
}
>
text translated
</Text>
<Text
onPress={[Function]}
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 14,
"fontWeight": "600",
"opacity": 1,
"paddingTop": 25,
}
}
testID="menu.settings"
>
text translated
</Text>
<Text
onPress={[Function]}
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 14,
"fontWeight": "600",
"opacity": 1,
"paddingTop": 25,
}
}
testID="menu.addressbook"
>
text translated
</Text>
<Text
onPress={[Function]}
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 14,
"fontWeight": "600",
"opacity": 1,
"paddingTop": 25,
}
}
>
text translated
</Text>
<Text
onPress={[Function]}
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 14,
"fontWeight": "600",
"opacity": 1,
"paddingTop": 25,
}
}
>
text translated
</Text>
<Text
onPress={[Function]}
style={
{
"color": "rgb(28, 28, 30)",
"fontSize": 14,
"fontWeight": "600",
"opacity": 1,
"paddingTop": 25,
}
}
>
text translated
</Text>
</View>
</View>
</RCTScrollView>
<View
style={
{
"backgroundColor": "#010101",
"bottom": 5,
"flexDirection": "row",
"padding": 10,
"position": "absolute",
}
}
>
<Text
style={
{
"color": "rgb(216, 216, 216)",
"fontSize": 8,
}
}
>
Version :
</Text>
<Text
style={
{
"color": undefined,
"fontSize": 8,
}
}
>
text translated
</Text>
<Text
style={
{
"color": "rgb(216, 216, 216)",
"fontSize": 8,
"marginLeft": 10,
}
}
>
text translatedtext translated
</Text>
</View>
</View>
</View>
<View
Expand Down Expand Up @@ -184,20 +366,22 @@ exports[`Component LoadedApp - test LoadedApp - snapshot 1`] = `
visible={false}
/>
<View />
<MockedBottomTabNavigator
initialRouteName="text translated"
screenOptions={[Function]}
<View
style={
{
"alignItems": "center",
"backgroundColor": "#011401",
"display": "flex",
"height": "100%",
"justifyContent": "center",
}
}
>
<MockedScreen
name="text translated"
/>
<MockedScreen
name="text translated"
<ActivityIndicator
color="#18bd18"
size="large"
/>
<MockedScreen
name="text translated"
/>
</MockedBottomTabNavigator>
</View>
</View>
</View>
`;
Loading

0 comments on commit a89cd51

Please sign in to comment.