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