Skip to content

Commit

Permalink
Mocked handy-timeago module
Browse files Browse the repository at this point in the history
  • Loading branch information
yTakkar committed Jun 27, 2018
1 parent ede3e94 commit c23e034
Show file tree
Hide file tree
Showing 39 changed files with 90 additions and 89 deletions.
1 change: 1 addition & 0 deletions __mocks__/handy-timeago.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default () => 'a month ago'
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports[`AboutGroup Component should match snapshot 1`] = `
<span
className="a_info"
>
Last year
a month ago
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ exports[`GroupPosts Component should match snapshot 1`] = `
className="p_time"
>
<span>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -549,7 +549,7 @@ exports[`GroupPosts Component should match snapshot 1`] = `
className="p_time"
>
<span>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -1038,7 +1038,7 @@ exports[`GroupPosts Component should match snapshot and hide postItTeaser when j
className="p_time"
>
<span>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -1342,7 +1342,7 @@ exports[`GroupPosts Component should match snapshot and hide postItTeaser when j
className="p_time"
>
<span>
Last year
a month ago
</span>
</div>
<div
Expand Down
4 changes: 2 additions & 2 deletions src/components/home/__test__/__snapshots__/feed.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Array [
className="p_time"
>
<span>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -365,7 +365,7 @@ Array [
className="p_time"
>
<span>
Last year
a month ago
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exports[`Messages Component should match snapshot 1`] = `
<span
className="m_sr_time"
>
Last year
a month
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Array [
<span
className="sli_bold"
>
Last year
a month ago
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`ConSince Component should match snapshot 1`] = `
<span
className="sli_bold"
>
Last year
a month ago
</span>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<img
className="m_m_sticker"
Expand All @@ -59,7 +59,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand All @@ -73,7 +73,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<span>
kjkjk
Expand All @@ -83,7 +83,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand All @@ -97,7 +97,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<img
className="m_m_sticker"
Expand All @@ -108,7 +108,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand All @@ -122,7 +122,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<img
className="m_m_img"
Expand All @@ -134,7 +134,7 @@ exports[`MapMessages Component should match snapshot 1`] = `
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`MessageType Component should match snapshot with null when !message 1`] = `
<div
className="m_m"
title="Last month"
title="a month ago"
>
<span
style={
Expand All @@ -20,7 +20,7 @@ exports[`MessageType Component should match snapshot with null when !message 1`]
exports[`MessageType Component should match snapshot with type image 1`] = `
<div
className="m_m"
title="Last month"
title="a month ago"
>
<img
className="m_m_img"
Expand All @@ -33,7 +33,7 @@ exports[`MessageType Component should match snapshot with type image 1`] = `
exports[`MessageType Component should match snapshot with type sticker 1`] = `
<div
className="m_m"
title="Last month"
title="a month ago"
>
<img
className="m_m_sticker"
Expand All @@ -45,7 +45,7 @@ exports[`MessageType Component should match snapshot with type sticker 1`] = `
exports[`MessageType Component should match snapshot with type text 1`] = `
<div
className="m_m"
title="Last month"
title="a month ago"
>
<span>
kjkjk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`Message Component should match snapshot with message type image 1`] = `
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<img
className="m_m_img"
Expand All @@ -23,7 +23,7 @@ exports[`Message Component should match snapshot with message type image 1`] = `
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand All @@ -40,7 +40,7 @@ exports[`Message Component should match snapshot with message type sticker 1`] =
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<img
className="m_m_sticker"
Expand All @@ -51,7 +51,7 @@ exports[`Message Component should match snapshot with message type sticker 1`] =
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand All @@ -68,7 +68,7 @@ exports[`Message Component should match snapshot with message type text 1`] = `
>
<div
className="m_m"
title="Last year"
title="a month ago"
>
<span>
kjkjk
Expand All @@ -78,7 +78,7 @@ exports[`Message Component should match snapshot with message type text 1`] = `
<span
className="m_m_time"
>
Last year
a month
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`ConversationTop Component should match snapshot 1`] = `
<span
className="m_m_t_useless"
>
Last active Last year
Last active a month ago
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`ConversationInfo Component should match snapshot 1`] = `
<span
className="m_m_t_useless"
>
Last active Last year
Last active a month ago
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports[`ConversationTeaser Component should match snapshot 1`] = `
<span
className="m_sr_time"
>
Last year
a month
</span>
</div>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`LastMssgTime Component should match snapshot 1`] = `
<span
className="m_sr_time"
>
4 months
a month
</span>
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Array [
<span
className="m_sr_time"
>
Last year
a month
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ exports[`Notifications Component should match snapshot 1`] = `
<span
className="noti_time"
>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -113,7 +113,7 @@ exports[`Notifications Component should match snapshot 1`] = `
<span
className="noti_time"
>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -149,7 +149,7 @@ exports[`Notifications Component should match snapshot 1`] = `
<span
className="noti_time"
>
Last year
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -185,7 +185,7 @@ exports[`Notifications Component should match snapshot 1`] = `
<span
className="noti_time"
>
Last year
a month ago
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports[`Notification Component should match snapshot with change_admin notifica
<span
className="noti_time"
>
4 months ago
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -62,7 +62,7 @@ exports[`Notification Component should match snapshot with follow notification 1
<span
className="noti_time"
>
4 months ago
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`Notification Component should match snapshot with like notification 1`]
<span
className="noti_time"
>
4 months ago
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -141,7 +141,7 @@ exports[`Notification Component should match snapshot with mention_post notifica
<span
className="noti_time"
>
4 months ago
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -180,7 +180,7 @@ exports[`Notification Component should match snapshot with recommend notificatio
<span
className="noti_time"
>
4 months ago
a month ago
</span>
</div>
<div
Expand Down Expand Up @@ -219,7 +219,7 @@ exports[`Notification Component should match snapshot with tag notification 1`]
<span
className="noti_time"
>
4 months ago
a month ago
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`ImageTheatre Component should match snapshot with complete details 1`]
<span
className="img_s_by"
>
by takkar (4 months)
by takkar (a month)
</span>
<Link
className="img_s_window"
Expand Down
Loading

0 comments on commit c23e034

Please sign in to comment.