test(web): remove redundant timestamp assertions (#7633)
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
4a9edff4c1
commit
f708f63fa9
1 file changed
-2
@@ -197,12 +197,10 @@ describe("formatDayAwareTimestamp", () => {
|
||||
|
||||
describe("invalid timestamp inputs", () => {
|
||||
it("returns an empty timestamp instead of throwing", () => {
|
||||
expect(() => formatTimestamp("not-a-date", "12-hour")).not.toThrow();
|
||||
expect(formatTimestamp("not-a-date", "12-hour")).toBe("");
|
||||
});
|
||||
|
||||
it("returns an empty short timestamp instead of throwing", () => {
|
||||
expect(() => formatShortTimestamp("not-a-date", "12-hour")).not.toThrow();
|
||||
expect(formatShortTimestamp("not-a-date", "12-hour")).toBe("");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user