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 {
|
} 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…
Reference in New Issue