Skip to content
Snippets Groups Projects
Commit 30719ac6 authored by zshan2's avatar zshan2
Browse files

repairing uploading

parent 6ce28402
No related branches found
No related tags found
1 merge request!2Assignment 3.1
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<Text
style={
Object {
"fontSize": 30,
}
}
>
Loading......
</Text>
<Image
source={
Object {
"uri": "http://simpleicon.com/wp-content/uploads/refresh.png",
}
}
style={
Object {
"height": 200,
"width": 200,
}
}
/>
</View>
</View>
</View>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<Text
style={
Object {
"fontSize": 30,
}
}
>
Loading......
</Text>
<Image
source={
Object {
"uri": "http://simpleicon.com/wp-content/uploads/refresh.png",
}
}
style={
Object {
"height": 200,
"width": 200,
}
}
/>
</View>
</View>
</View>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<Text
style={
Object {
"fontSize": 30,
}
}
>
Loading......
</Text>
<Image
source={
Object {
"uri": "http://simpleicon.com/wp-content/uploads/refresh.png",
}
}
style={
Object {
"height": 200,
"width": 200,
}
}
/>
</View>
</View>
</View>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<Image
source={
Object {
"uri": "https://avatars.githubusercontent.com/u/42978932?u=b4a7beb2752bb6059cd13d12ca26d097767abf77&v=4",
}
}
style={
Object {
"height": 120,
"width": 120,
}
}
/>
</View>
<View
style={
Object {
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
}
}
>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Followers
</Text>
</View>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Followings
</Text>
</View>
</View>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<Text
style={
Object {
"alignItems": "flex-start",
"backgroundColor": "white",
"borderColor": "black",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"marginHorizontal": 10,
"marginTop": 20,
"paddingHorizontal": 50,
"paddingVertical": 10,
}
}
>
</Text>
<Text
style={
Object {
"alignItems": "flex-start",
"backgroundColor": "white",
"borderColor": "black",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"marginHorizontal": 10,
"marginTop": 20,
"paddingHorizontal": 50,
"paddingVertical": 10,
}
}
>
</Text>
<Text
style={
Object {
"alignItems": "flex-start",
"backgroundColor": "white",
"borderColor": "black",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"marginHorizontal": 10,
"marginTop": 20,
"paddingHorizontal": 50,
"paddingVertical": 10,
}
}
>
</Text>
<Text
style={
Object {
"alignItems": "flex-start",
"backgroundColor": "white",
"borderColor": "black",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"marginHorizontal": 10,
"marginTop": 20,
"paddingHorizontal": 50,
"paddingVertical": 10,
}
}
>
</Text>
<Text
style={
Object {
"alignItems": "flex-start",
"backgroundColor": "white",
"borderColor": "black",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"marginHorizontal": 10,
"marginTop": 20,
"paddingHorizontal": 50,
"paddingVertical": 10,
}
}
>
</Text>
<Text
style={
Object {
"alignItems": "flex-start",
"backgroundColor": "white",
"borderColor": "black",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"marginHorizontal": 10,
"marginTop": 20,
"paddingHorizontal": 50,
"paddingVertical": 10,
}
}
>
</Text>
</View>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
0
</Text>
</View>
</View>
</View>
</View>
</View>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Go to Profile
</Text>
</View>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Go to Profile
</Text>
</View>
</View>
</View>
</View>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<Text
style={
Object {
"fontSize": 30,
}
}
>
Error! Check log to see details
</Text>
<Image
source={
Object {
"uri": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/17/Warning.svg/156px-Warning.svg.png",
}
}
style={
Object {
"height": 200,
"width": 200,
}
}
/>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Go back to Home Page
</Text>
</View>
</View>
</View>
</View>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Object {
"flex": 1,
"justifyContent": "center",
"resizeMode": "cover",
}
}
>
<Image
source={
Object {
"uri": "https://www.fonewalls.com/wp-content/uploads/2020/04/Ice-Phone-Wallpaper.jpg",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": undefined,
"width": undefined,
},
undefined,
]
}
/>
<View
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"margin": "10%",
}
}
>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Go to Profile
</Text>
</View>
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"backgroundColor": "lavender",
"borderColor": "thistle",
"borderRadius": 5,
"borderWidth": 2,
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
"marginHorizontal": 10,
"marginTop": 10,
"paddingHorizontal": 20,
"paddingVertical": 10,
}
}
>
<Text>
Go to Profile
</Text>
</View>
</View>
</View>
</View>
`;
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "~7.9.0", "@babel/core": "~7.9.0",
"@testing-library/react-native": "^7.2.0",
"jest": "^26.6.3" "jest": "^26.6.3"
}, },
"private": true "private": true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment