bitwarden-estensione-browser/libs/common/spec/models/view/passwordHistoryView.spec.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
392 B
TypeScript
Raw Normal View History

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);
});
});