mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-07 20:53:54 -05:00
* INJIMOB-3246 Code coverage for Inji-Wallet repo increase above 5% Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> * INJIMOB-3246: added snapshot tests and coverage increased to +4% Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> * removed duplicated lines Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> * Added updateCredentialInformation tests Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> * added code rabbit changes Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> * removed platform-specific tests without mocking Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> * standardize mocks in VcItemContainerProfileImage tests Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com> --------- Signed-off-by: Kaushik Gupta <kausgpt97@gmail.com>
630 lines
11 KiB
Plaintext
630 lines
11 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Passcode Component should match snapshot with both message and error 1`] = `
|
|
<Modal
|
|
animationType="slide"
|
|
hardwareAccelerated={false}
|
|
onRequestClose={[MockFunction]}
|
|
style={
|
|
{
|
|
"height": 1334,
|
|
"width": 750,
|
|
}
|
|
}
|
|
visible={true}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
{
|
|
"paddingBottom": 32,
|
|
"paddingEnd": 32,
|
|
"paddingStart": 32,
|
|
"paddingTop": 32,
|
|
},
|
|
null,
|
|
{
|
|
"backgroundColor": "#FFFFFF",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
{
|
|
"width": "100%",
|
|
},
|
|
null,
|
|
{
|
|
"justifyContent": "space-between",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
null,
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
Enter passcode
|
|
</Text>
|
|
</View>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
{
|
|
"color": "#D52929",
|
|
},
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
Authentication failed
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
</Modal>
|
|
`;
|
|
|
|
exports[`Passcode Component should match snapshot with custom message 1`] = `
|
|
<Modal
|
|
animationType="slide"
|
|
hardwareAccelerated={false}
|
|
onRequestClose={[MockFunction]}
|
|
style={
|
|
{
|
|
"height": 1334,
|
|
"width": 750,
|
|
}
|
|
}
|
|
visible={true}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
{
|
|
"paddingBottom": 32,
|
|
"paddingEnd": 32,
|
|
"paddingStart": 32,
|
|
"paddingTop": 32,
|
|
},
|
|
null,
|
|
{
|
|
"backgroundColor": "#FFFFFF",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
{
|
|
"width": "100%",
|
|
},
|
|
null,
|
|
{
|
|
"justifyContent": "space-between",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
null,
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
Please enter your 6-digit passcode
|
|
</Text>
|
|
</View>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
{
|
|
"color": "#D52929",
|
|
},
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
/>
|
|
</View>
|
|
</View>
|
|
</Modal>
|
|
`;
|
|
|
|
exports[`Passcode Component should match snapshot with default props 1`] = `
|
|
<Modal
|
|
animationType="slide"
|
|
hardwareAccelerated={false}
|
|
onRequestClose={[MockFunction]}
|
|
style={
|
|
{
|
|
"height": 1334,
|
|
"width": 750,
|
|
}
|
|
}
|
|
visible={true}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
{
|
|
"paddingBottom": 32,
|
|
"paddingEnd": 32,
|
|
"paddingStart": 32,
|
|
"paddingTop": 32,
|
|
},
|
|
null,
|
|
{
|
|
"backgroundColor": "#FFFFFF",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
{
|
|
"width": "100%",
|
|
},
|
|
null,
|
|
{
|
|
"justifyContent": "space-between",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
null,
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
Enter your passcode
|
|
</Text>
|
|
</View>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
{
|
|
"color": "#D52929",
|
|
},
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
/>
|
|
</View>
|
|
</View>
|
|
</Modal>
|
|
`;
|
|
|
|
exports[`Passcode Component should match snapshot with error message 1`] = `
|
|
<Modal
|
|
animationType="slide"
|
|
hardwareAccelerated={false}
|
|
onRequestClose={[MockFunction]}
|
|
style={
|
|
{
|
|
"height": 1334,
|
|
"width": 750,
|
|
}
|
|
}
|
|
visible={true}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
{
|
|
"paddingBottom": 32,
|
|
"paddingEnd": 32,
|
|
"paddingStart": 32,
|
|
"paddingTop": 32,
|
|
},
|
|
null,
|
|
{
|
|
"backgroundColor": "#FFFFFF",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
{
|
|
"width": "100%",
|
|
},
|
|
null,
|
|
{
|
|
"justifyContent": "space-between",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
null,
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
Enter your passcode
|
|
</Text>
|
|
</View>
|
|
<View
|
|
accessible={true}
|
|
style={
|
|
[
|
|
{
|
|
"alignItems": undefined,
|
|
"flexDirection": "column",
|
|
"justifyContent": undefined,
|
|
},
|
|
{
|
|
"flex": 1,
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
<Text
|
|
style={
|
|
[
|
|
{
|
|
"color": "#000000",
|
|
"fontSize": 16,
|
|
"lineHeight": 18,
|
|
},
|
|
{
|
|
"fontFamily": "Inter_400Regular",
|
|
"fontSize": 14,
|
|
},
|
|
{
|
|
"color": "#D52929",
|
|
},
|
|
{
|
|
"textAlign": "center",
|
|
},
|
|
null,
|
|
null,
|
|
null,
|
|
]
|
|
}
|
|
>
|
|
Incorrect passcode. Try again.
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
</Modal>
|
|
`;
|