| ... | @@ -197,12 +197,10 @@ describe("formatDayAwareTimestamp", () => { | ... | @@ -197,12 +197,10 @@ describe("formatDayAwareTimestamp", () => { |
| 197 | | 197 | |
| 198 | describe("invalid timestamp inputs", () => { | 198 | describe("invalid timestamp inputs", () => { |
| 199 | it("returns an empty timestamp instead of throwing", () => { | 199 | it("returns an empty timestamp instead of throwing", () => { |
| 200 | expect(() => formatTimestamp("not-a-date", "12-hour")).not.toThrow(); | | |
| 201 | expect(formatTimestamp("not-a-date", "12-hour")).toBe(""); | 200 | expect(formatTimestamp("not-a-date", "12-hour")).toBe(""); |
| 202 | }); | 201 | }); |
| 203 | | 202 | |
| 204 | it("returns an empty short timestamp instead of throwing", () => { | 203 | it("returns an empty short timestamp instead of throwing", () => { |
| 205 | expect(() => formatShortTimestamp("not-a-date", "12-hour")).not.toThrow(); | | |
| 206 | expect(formatShortTimestamp("not-a-date", "12-hour")).toBe(""); | 204 | expect(formatShortTimestamp("not-a-date", "12-hour")).toBe(""); |
| 207 | }); | 205 | }); |
| 208 | | 206 | |