mirror of
https://github.com/bitwarden/browser
synced 2024-12-15 19:03:25 +01:00
14 lines
392 B
TypeScript
14 lines
392 B
TypeScript
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);
|
|
});
|
|
});
|