import { PasswordHistoryView } from "@bitwarden/common/models/view/passwordHistoryView"; describe("PasswordHistoryView", () => { it("fromJSON initializes nested objects", () => { const lastUsedDate = new Date(); const actual = PasswordHistoryView.fromJSON({ lastUsedDate: lastUsedDate.toISOString(), }); expect(actual.lastUsedDate).toEqual(lastUsedDate); }); });