serializes to the same string code example
Example: jest serializes to the same string
describe("toDate", () => {
it("should accept times", () => {
const dateTime = new Date();
dateTime.setHours(0);
dateTime.setMinutes(30);
dateTime.setSeconds(0, 0);
expect(toDate("00:30:00)).toBe(dateTime)
expect(toDate("00:30:00")).toMatchObject(dateTime);
});
});
describe("array matches", () => {
it("should match", () => {
expect([0,0,0]).toBe([0, 0, 0]);
expect([0,0,0]).toEqual([0, 0, 0]);
expect([0,0,0]).toStrictEqual([0, 0, 0]);
});
});