Skip to content

Commit

Permalink
test: Modify test cases due to Mock API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
falsy committed Feb 18, 2025
1 parent abad7e3 commit 33c28f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/adapters/src/__test__/dtos/UserDTO.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ describe("UserDTO", () => {
id: "12345",
name: "Falsy",
email: "[email protected]",
createdAt: new Date("2023-01-01T00:00:00Z"),
updatedAt: new Date("2023-01-02T00:00:00Z")
createdAt: "2023-01-01T00:00:00Z",
updatedAt: "2023-01-02T00:00:00Z"
}

const user = new UserDTO(params)

expect(user.id).toBe("12345")
expect(user.name).toBe("Falsy")
expect(user.email).toBe("[email protected]")
expect(user.createdAt).toEqual(new Date("2023-01-01T00:00:00Z"))
expect(user.updatedAt).toEqual(new Date("2023-01-02T00:00:00Z"))
expect(user.createdAt).toEqual("2023-01-01T00:00:00Z")
expect(user.updatedAt).toEqual("2023-01-02T00:00:00Z")
})
})

0 comments on commit 33c28f1

Please sign in to comment.