1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-05 18:13:14 +00:00
Files
jslib/common/spec/domain/folder.spec.ts
2022-04-19 11:31:49 +02:00

19 lines
472 B
TypeScript

import { FolderData } from "jslib-common/models/data/folderData";
describe("Folder", () => {
it("Convert", () => {
const data = new FolderData();
data.id = "id";
data.name = "encName";
data.revisionDate = "2022-01-31T12:00:00.000Z";
const field = data.toFolder();
expect(field).toEqual({
id: "id",
name: { encryptedString: "encName", encryptionType: 0 },
revisionDate: new Date("2022-01-31T12:00:00.000Z"),
});
});
});