Skip to content

Commit

Permalink
LPS-158459 Add dateCreated to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas2691 authored and brianchandotcom committed Aug 8, 2022
1 parent 01d5e53 commit 2a5cbbe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
Expand Up @@ -127,10 +127,7 @@ export default withRouter(
<div className="d-flex justify-content-between">
<div>
{editable && (
<div
className="font-weight-bold text-secondary"
spaced={true}
>
<div className="font-weight-bold text-secondary">
{answer.actions[
'reply-to-message'
] &&
Expand Down
Expand Up @@ -66,10 +66,7 @@ export default withRouter(

{editable && comment.actions.delete && (
<>
<div
className="font-weight-bold text-secondary"
spaced={true}
>
<div className="font-weight-bold text-secondary">
<ClayButton
className="btn-sm c-mr-2 c-px-2 c-py-1"
displayType="secondary"
Expand Down
Expand Up @@ -127,7 +127,8 @@ export default withRouter(
);
setError(errorObject);
setLoading(false);
} else {
}
else {
setQuestion(messageBoardThreadByFriendlyUrlPath);
setLoading(false);
}
Expand Down Expand Up @@ -217,7 +218,8 @@ export default withRouter(
await onSubscription();

fetchMessages();
} catch (error) {}
}
catch (error) {}
};

const deleteAnswer = useCallback(
Expand Down
Expand Up @@ -67,6 +67,7 @@ const mockAnswer = {
postsNumber: 12,
rank: 'Youngling',
},
dateCreated: '2020-07-30T09:44:49Z',
encodingFormat: 'html',
friendlyUrlPath: 're-new-question',
id: 36801,
Expand Down

0 comments on commit 2a5cbbe

Please sign in to comment.