lint
This commit is contained in:
parent
29b75385a3
commit
4ff08f942d
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue