diff options
author | Jonathan <jonfritz@gmail.com> | 2017-08-30 08:06:29 -0400 |
---|---|---|
committer | Saturnino Abril <saturnino.abril@gmail.com> | 2017-08-30 20:06:29 +0800 |
commit | 4c1f4674425ffeb430aa07f3fccbb09837f36a34 (patch) | |
tree | 9357f09211afc3d380857730a9dc2b6c61089292 /webapp/tests | |
parent | 213a072b38d29d3c3ec8e150584685b1144a7d6a (diff) | |
download | chat-4c1f4674425ffeb430aa07f3fccbb09837f36a34.tar.gz chat-4c1f4674425ffeb430aa07f3fccbb09837f36a34.tar.bz2 chat-4c1f4674425ffeb430aa07f3fccbb09837f36a34.zip |
PLT-7379: Timestamp on deleted, ephemeral, or pending post is a permalink (#7295)
* Removed permalink from system messages, general cleanup
* Removed permalink from deleted messages
* Removed permalink from pending messages
* Fixed post_info tests
* Changed permalink logic to remove permalinks from ephemeral messages, but leave them in place for system messages.
* Fixed check style
Diffstat (limited to 'webapp/tests')
-rw-r--r-- | webapp/tests/components/post_view/post_info/__snapshots__/post_info.test.jsx.snap | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webapp/tests/components/post_view/post_info/__snapshots__/post_info.test.jsx.snap b/webapp/tests/components/post_view/post_info/__snapshots__/post_info.test.jsx.snap index 911008a7b..d58df052d 100644 --- a/webapp/tests/components/post_view/post_info/__snapshots__/post_info.test.jsx.snap +++ b/webapp/tests/components/post_view/post_info/__snapshots__/post_info.test.jsx.snap @@ -9,6 +9,7 @@ exports[`components/post_view/PostInfo should match snapshot 1`] = ` > <PostTime eventTime={1502715365009} + isPermalink={true} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={false} /> @@ -98,6 +99,7 @@ exports[`components/post_view/PostInfo should match snapshot, compact display 1` > <PostTime eventTime={1502715365009} + isPermalink={true} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={false} /> @@ -187,6 +189,7 @@ exports[`components/post_view/PostInfo should match snapshot, ephemeral deleted > <PostTime eventTime={1502715365009} + isPermalink={false} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={false} /> @@ -222,6 +225,7 @@ exports[`components/post_view/PostInfo should match snapshot, ephemeral post 1`] > <PostTime eventTime={1502715365009} + isPermalink={false} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={false} /> @@ -266,6 +270,7 @@ exports[`components/post_view/PostInfo should match snapshot, flagged post 1`] = > <PostTime eventTime={1502715365009} + isPermalink={true} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={false} /> @@ -355,6 +360,7 @@ exports[`components/post_view/PostInfo should match snapshot, military time 1`] > <PostTime eventTime={1502715365009} + isPermalink={true} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={true} /> @@ -418,6 +424,7 @@ exports[`components/post_view/PostInfo should match snapshot, pinned post 1`] = > <PostTime eventTime={1502715365009} + isPermalink={true} postId="e584uzbwwpny9kengqayx5ayzw" useMilitaryTime={false} /> |