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);
    
    // error: serializes to same string
    expect(toDate("00:30:00)).toBe(dateTime)
    
    // pass
    expect(toDate("00:30:00")).toMatchObject(dateTime);
  });
});

describe("array matches", () => {
  it("should match", () => {
  	// fail
  	expect([0,0,0]).toBe([0, 0, 0]);
  	// pass
    expect([0,0,0]).toEqual([0, 0, 0]);
    expect([0,0,0]).toStrictEqual([0, 0, 0]);
  });
});