1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-16 19:30:28 +01:00
bitwarden-estensione-browser/libs/importer/spec/test-data/bitwarden-json/cipher-with-collections.json.ts
aj-rosado b180463cc0
Changed logic to validate if cipher has a collection on targetSelector method (#8422)
Added tests to import.service.spec.ts that test if the collectionRelationship and folderRelationship properly adapts
2024-03-25 18:10:40 +00:00

38 lines
1004 B
TypeScript

export const cipherWithCollections = `{
"encrypted": false,
"collections": [
{
"id": "8e3f5ba1-3e87-4ee8-8da9-b1180099ff9f",
"organizationId": "c6181652-66eb-4cd9-a7f2-b02a00e12352",
"name": "asdf",
"externalId": null
}
],
"items": [
{
"passwordHistory": null,
"revisionDate": "2024-02-16T09:20:48.383Z",
"creationDate": "2024-02-16T09:20:48.383Z",
"deletedDate": null,
"id": "f761a968-4b0f-4090-a568-b118009a07b5",
"organizationId": "c6181652-66eb-4cd9-a7f2-b02a00e12352",
"folderId": null,
"type": 1,
"reprompt": 0,
"name": "asdf123",
"notes": null,
"favorite": false,
"login": {
"fido2Credentials": [],
"uris": [],
"username": null,
"password": null,
"totp": null
},
"collectionIds": [
"8e3f5ba1-3e87-4ee8-8da9-b1180099ff9f"
]
}
]
}`;