-
Notifications
You must be signed in to change notification settings - Fork 0
/
testState.js
116 lines (116 loc) · 2.5 KB
/
testState.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
export const testState1 = {
postListings: {
staticDataLoaded: true,
subreddits: {},
listingsLoaded: true,
listings: {
"All": {
name: "All",
path: "",
includedSubs: ["Sub1", "Sub2", "Sub3"],
postIds: ["1", "2", "3", "4", "5", "6", "20"]
},
"Cat 1": {
name: "Cat 1",
path: "cat-1",
includedSubs: ["Sub1", "Sub3"],
postIds: []
},
"Cat 2": {
name: "Cat 2",
path: "cat-2",
includedSubs: ["Sub2"],
postIds: []
},
"Empty Listing": {
name: "Empty Listing",
path: "empty-listing",
includedSubs: [],
postIds: []
}
}
},
postContent: {
posts: {
"1": {
category: "Cat 1",
id: "1",
isSelfPost: true,
selfText: "Post 1 Self Text",
subreddit: "Sub1",
title: "Post 1",
commentsStatus: "fulfilled",
comments: [
{
author: "CommentAuthor1",
body: "Comment 1",
id: 1,
score: 100,
scoreHidden: false
},
{
author: "CommentAuthor2",
body: "Comment 2",
id: 2,
score: 80,
scoreHidden: false
},
{
author: "CommentAuthor3",
body: "Comment 3",
id: 3,
score: 60,
scoreHidden: false
},
{
author: "CommentAuthor4",
body: "Comment with a [comment link](https://www.example.com/)",
id: 4,
score: 40,
scoreHidden: false
}
]
},
"2": {
category: "Cat 2",
id: "2",
isSelfPost: false,
link: "https://www.example.com/",
subreddit: "Sub2",
title: "Post 2",
commentsStatus: "pending"
},
"3": {
category: "Cat 1",
id: "3",
subreddit: "Sub3",
title: "Post 3",
commentsStatus: "rejected"
},
"4": {
category: "Cat 1",
id: "4",
subreddit: "Sub1",
title: "Post 4"
},
"5": {
category: "Cat 2",
id: "5",
subreddit: "Sub2",
title: "Post 5"
},
"6": {
category: "Cat 1",
id: "6",
subreddit: "Sub3",
title: "Post 6"
},
"20": {
category: "Cat 2",
id: "20",
subreddit: "Sub2",
title: "Post 20"
},
}
}
};