mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-03 21:01:07 +02:00
lint
This commit is contained in:
parent
29b75385a3
commit
4ff08f942d
@ -117,7 +117,7 @@ export default class DateSeparator extends React.Component<IProps, IState> {
|
|||||||
} else {
|
} else {
|
||||||
return formatFullDateNoTime(date);
|
return formatFullDateNoTime(date);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (_) {
|
||||||
return _t("common|message_timestamp_invalid");
|
return _t("common|message_timestamp_invalid");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ describe("DateSeparator", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("renders invalid date separator correctly", () => {
|
it("renders invalid date separator correctly", () => {
|
||||||
let ts = new Date(-8640000000000004).getTime();
|
const ts = new Date(-8640000000000004).getTime();
|
||||||
const { asFragment } = getComponent({ ts });
|
const { asFragment } = getComponent({ ts });
|
||||||
expect(asFragment()).toMatchSnapshot();
|
expect(asFragment()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user