Skip to content

Commit 20b69d0

Browse files
2 parents 06d246c + 4ee475a commit 20b69d0

36 files changed

+2959
-122
lines changed

package-lock.json

Lines changed: 450 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,15 @@
4747
]
4848
},
4949
"devDependencies": {
50+
"enzyme": "^3.10.0",
51+
"enzyme-adapter-react-16": "^1.14.0",
52+
"enzyme-to-json": "^3.3.5",
5053
"eslint": "^5.16.0",
54+
"fetch-mock": "^7.3.3",
55+
"jest-cli": "^24.8.0",
5156
"node-sass": "^4.12.0",
5257
"redux-logger": "^3.0.6",
58+
"redux-mock-store": "^1.5.3",
5359
"sass-loader": "^7.1.0",
5460
"typescript": "^3.5.1"
5561
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`album render album render correctly 1`] = `
4+
<Provider
5+
store={
6+
Object {
7+
"clearActions": [Function],
8+
"dispatch": [Function],
9+
"getActions": [Function],
10+
"getState": [Function],
11+
"replaceReducer": [Function],
12+
"subscribe": [Function],
13+
}
14+
}
15+
>
16+
<Connect(Album)
17+
photos={
18+
Array [
19+
Object {
20+
"height": 632,
21+
"src": "http://127.0.0.1:8082/media/pinhole/010.jpg",
22+
"width": 620,
23+
},
24+
Object {
25+
"height": 632,
26+
"src": "http://127.0.0.1:8082/media/pinhole/020.jpg",
27+
"width": 1568,
28+
},
29+
Object {
30+
"height": 632,
31+
"src": "http://127.0.0.1:8082/media/pinhole/030.jpg",
32+
"width": 1053,
33+
},
34+
]
35+
}
36+
>
37+
<Album
38+
dispatch={[Function]}
39+
photos={
40+
Array [
41+
Object {
42+
"height": 632,
43+
"src": "http://127.0.0.1:8082/media/pinhole/010.jpg",
44+
"width": 620,
45+
},
46+
Object {
47+
"height": 632,
48+
"src": "http://127.0.0.1:8082/media/pinhole/020.jpg",
49+
"width": 1568,
50+
},
51+
Object {
52+
"height": 632,
53+
"src": "http://127.0.0.1:8082/media/pinhole/030.jpg",
54+
"width": 1053,
55+
},
56+
]
57+
}
58+
>
59+
<div
60+
className="app__gallery"
61+
>
62+
<Gallery
63+
direction="row"
64+
margin={0}
65+
onClick={[Function]}
66+
photos={
67+
Array [
68+
Object {
69+
"height": 632,
70+
"src": "http://127.0.0.1:8082/media/pinhole/010.jpg",
71+
"width": 620,
72+
},
73+
Object {
74+
"height": 632,
75+
"src": "http://127.0.0.1:8082/media/pinhole/020.jpg",
76+
"width": 1568,
77+
},
78+
Object {
79+
"height": 632,
80+
"src": "http://127.0.0.1:8082/media/pinhole/030.jpg",
81+
"width": 1053,
82+
},
83+
]
84+
}
85+
targetRowHeight={350}
86+
>
87+
<div>
88+
 
89+
</div>
90+
</Gallery>
91+
</div>
92+
</Album>
93+
</Connect(Album)>
94+
</Provider>
95+
`;

0 commit comments

Comments
 (0)