Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(chore) update test snapshots
· e9387aef
Martin Santangelo
authored
Oct 07, 2019
e9387aef
(feat) fix channel actions spec test
· 7726bbd0
Martin Santangelo
authored
Oct 07, 2019
7726bbd0
Hide whitespace changes
Inline
Side-by-side
__tests__/activity/components/__snapshots__/Activity.js.snap
View file @
7726bbd0
...
...
@@ -52,6 +52,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -117,6 +118,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -198,6 +200,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -307,6 +310,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -383,6 +387,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -455,6 +460,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -533,6 +539,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
@@ -604,6 +611,7 @@ exports[`Activity component renders correctly 1`] = `
"parent_guid": "838106762591510528",
"paywall": undefined,
"perma_url": false,
"permissions": Object {},
"pinned": undefined,
"rowKey": "something0",
"shouldBeBlured": [MockFunction] {
...
...
__tests__/blogs/__snapshots__/BlogsViewScreen.js.snap
View file @
7726bbd0
...
...
@@ -95,6 +95,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"monetized": "",
"name": "Some User",
"owner_guid": "0",
"permissions": Object {},
"pinned_posts": Array [],
"plus": true,
"programs": Array [
...
...
@@ -127,6 +128,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"owner_guid": "1",
"paywall": false,
"perma_url": "https://www.minds.com/blog/view/836607056186159104",
"permissions": Object {},
"published": true,
"rating": 1,
"reminds": 58,
...
...
@@ -283,6 +285,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"monetized": "",
"name": "Some User",
"owner_guid": "0",
"permissions": Object {},
"pinned_posts": Array [],
"plus": true,
"programs": Array [
...
...
@@ -315,6 +318,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"owner_guid": "1",
"paywall": false,
"perma_url": "https://www.minds.com/blog/view/836607056186159104",
"permissions": Object {},
"published": true,
"rating": 1,
"reminds": 58,
...
...
@@ -453,6 +457,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"monetized": "",
"name": "Some User",
"owner_guid": "0",
"permissions": Object {},
"pinned_posts": Array [],
"plus": true,
"programs": Array [
...
...
@@ -485,6 +490,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"owner_guid": "1",
"paywall": false,
"perma_url": "https://www.minds.com/blog/view/836607056186159104",
"permissions": Object {},
"published": true,
"rating": 1,
"reminds": 58,
...
...
@@ -603,6 +609,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"monetized": "",
"name": "Some User",
"owner_guid": "0",
"permissions": Object {},
"pinned_posts": Array [],
"plus": true,
"programs": Array [
...
...
@@ -635,6 +642,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"owner_guid": "1",
"paywall": false,
"perma_url": "https://www.minds.com/blog/view/836607056186159104",
"permissions": Object {},
"published": true,
"rating": 1,
"reminds": 58,
...
...
@@ -749,6 +757,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"monetized": "",
"name": "Some User",
"owner_guid": "0",
"permissions": Object {},
"pinned_posts": Array [],
"plus": true,
"programs": Array [
...
...
@@ -781,6 +790,7 @@ exports[`blog view screen component should renders correctly 1`] = `
"owner_guid": "1",
"paywall": false,
"perma_url": "https://www.minds.com/blog/view/836607056186159104",
"permissions": Object {},
"published": true,
"rating": 1,
"reminds": 58,
...
...
__tests__/channel/ChannelActions.js
View file @
7726bbd0
...
...
@@ -69,13 +69,13 @@ describe('channel actions component', () => {
store
.
channel
.
subscribed
=
true
;
store
.
channel
.
blocked
=
true
;
opt
=
wrapper
.
instance
().
mak
eAction
(
1
);
opt
=
wrapper
.
instance
().
execut
eAction
(
1
);
expect
(
store
.
channel
.
toggleSubscription
).
toBeCalled
();
opt
=
wrapper
.
instance
().
mak
eAction
(
2
);
opt
=
wrapper
.
instance
().
execut
eAction
(
2
);
expect
(
store
.
toggleBlock
).
toBeCalled
();
opt
=
wrapper
.
instance
().
mak
eAction
(
3
);
opt
=
wrapper
.
instance
().
execut
eAction
(
3
);
expect
(
navigation
.
push
).
toBeCalled
();
});
...
...
__tests__/channel/__snapshots__/ChannelActions.js.snap
View file @
7726bbd0
...
...
@@ -14,80 +14,6 @@ exports[`channel actions component should renders correctly 1`] = `
]
}
>
<View
accessibilityLabel="Wire Button"
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"backgroundColor": "white",
"borderColor": "#4690D6",
"borderRadius": 20,
"borderWidth": 1,
"flexDirection": "row",
"justifyContent": "center",
"margin": 4,
"opacity": 1,
"padding": 4,
}
}
>
<Text
allowFontScaling={false}
style={
Array [
Object {
"color": undefined,
"fontSize": 18,
},
Array [
Object {
"marginLeft": 5,
},
Object {
"color": "#4690D6",
},
],
Object {
"fontFamily": "Ionicons",
"fontStyle": "normal",
"fontWeight": "normal",
},
Object {},
]
}
>
</Text>
<Text
style={
Array [
Object {
"color": "#4690D6",
},
Array [
Object {
"marginLeft": 5,
},
Object {
"marginRight": 5,
},
],
]
}
>
Wire
</Text>
</View>
<View
accessibilityLabel="More"
accessible={true}
...
...
__tests__/channel/header/__snapshots__/ChannelHeader.js.snap
View file @
7726bbd0
...
...
@@ -194,49 +194,7 @@ exports[`channel header component owner should render correctly 1`] = `
},
]
}
>
<View
accessibilityLabel="Subscribe to this channel"
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"backgroundColor": "white",
"borderColor": "#4690D6",
"borderRadius": 20,
"borderWidth": 1,
"flexDirection": "row",
"justifyContent": "center",
"margin": 4,
"marginLeft": 0,
"opacity": 1,
"padding": 4,
}
}
>
<Text
style={
Array [
Object {
"color": "#4690D6",
},
undefined,
]
}
>
SUBSCRIBE
</Text>
</View>
</View>
/>
</View>
<View
style={
...
...