Skip to content

Commit e12669c

Browse files
committed
Fix tests
1 parent 86b621d commit e12669c

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

src/components/CardImageAttachments/__snapshots__/CardImageAttachments.test.js.snap

+6-10
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
exports[`renders a single image 1`] = `
44
<div
55
data-stylename="image"
6-
style={
7-
Object {
8-
"backgroundImage": "url(foo)",
9-
}
10-
}
116
>
7+
<img
8+
src="foo"
9+
/>
1210
<div>
1311
<div
1412
data-stylename="others"
@@ -24,12 +22,10 @@ exports[`renders a single image 1`] = `
2422
exports[`renders multiple images 1`] = `
2523
<div
2624
data-stylename="image"
27-
style={
28-
Object {
29-
"backgroundImage": "url(bar)",
30-
}
31-
}
3225
>
26+
<img
27+
src="bar"
28+
/>
3329
<div>
3430
<div
3531
data-stylename="others"

src/routes/PostDetail/Comments/Comment/__snapshots__/Comment.test.js.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports[`Comment displays image attachments 1`] = `
2121
<span
2222
data-stylename="timestamp"
2323
>
24-
2w ago
24+
1 mo ago
2525
</span>
2626
<div
2727
data-stylename="upperRight"
@@ -151,7 +151,7 @@ exports[`Comment displays the delete menu when deleteComment is defined 1`] = `
151151
<span
152152
data-stylename="timestamp"
153153
>
154-
2w ago
154+
1 mo ago
155155
</span>
156156
<div
157157
data-stylename="upperRight"
@@ -275,7 +275,7 @@ exports[`Comment displays the remove menu when removeComment is defined 1`] = `
275275
<span
276276
data-stylename="timestamp"
277277
>
278-
2w ago
278+
1 mo ago
279279
</span>
280280
<div
281281
data-stylename="upperRight"
@@ -390,7 +390,7 @@ exports[`Comment does not display the delete menu when deleteComment is not defi
390390
<span
391391
data-stylename="timestamp"
392392
>
393-
2w ago
393+
1 mo ago
394394
</span>
395395
<div
396396
data-stylename="upperRight"
@@ -496,7 +496,7 @@ exports[`Comment does not display the remove menu when removeComment is not defi
496496
<span
497497
data-stylename="timestamp"
498498
>
499-
2w ago
499+
1 mo ago
500500
</span>
501501
<div
502502
data-stylename="upperRight"
@@ -620,7 +620,7 @@ exports[`Comment renders correctly 1`] = `
620620
<span
621621
data-stylename="timestamp"
622622
>
623-
2w ago
623+
1 mo ago
624624
</span>
625625
<div
626626
data-stylename="upperRight"

0 commit comments

Comments
 (0)