Skip to content

Commit

Permalink
simple fake date
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoVK committed Dec 1, 2023
1 parent 8f27747 commit 62d6a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/components/MessageItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("<MessageItem /> spec", () => {
const view = render(<MessageItem data={{
messageBody: "Hello",
messageAttributes: {
SentTimestamp: "2021-05-01T00:00:00.000Z",
SentTimestamp: "fake",
}
}} />);
expect(view).toMatchSnapshot();
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/__snapshots__/MessageItem.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Object {
<span
class="MuiTypography-root MuiTypography-body1 MuiCardHeader-subheader css-nrdprl-MuiTypography-root"
>
Sent on: 1.1.1970, 01:00:02, Received at: Invalid Date
Sent on: Invalid Date, Received at: Invalid Date
</span>
Expand Down Expand Up @@ -99,7 +99,7 @@ Object {
<span
class="MuiTypography-root MuiTypography-body1 MuiCardHeader-subheader css-nrdprl-MuiTypography-root"
>
Sent on: 1.1.1970, 01:00:02, Received at: Invalid Date
Sent on: Invalid Date, Received at: Invalid Date
</span>
Expand Down

0 comments on commit 62d6a06

Please sign in to comment.