mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 17:41:52 -04:00

Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
107 lines
2 KiB
Text
107 lines
2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`NotesService toNoteDto works 1`] = `
|
|
{
|
|
"content": "mockContent",
|
|
"editedByAtPosition": [],
|
|
"metadata": {
|
|
"aliases": [
|
|
{
|
|
"name": "testAlias",
|
|
"noteId": "testId",
|
|
"primaryAlias": true,
|
|
},
|
|
],
|
|
"createdAt": "2019-02-04T20:34:12.000Z",
|
|
"description": "mockDescription",
|
|
"editedBy": [
|
|
"hardcoded",
|
|
],
|
|
"id": "testId",
|
|
"permissions": {
|
|
"owner": "hardcoded",
|
|
"sharedToGroups": [
|
|
{
|
|
"canEdit": true,
|
|
"groupName": "testGroup",
|
|
},
|
|
],
|
|
"sharedToUsers": [
|
|
{
|
|
"canEdit": true,
|
|
"username": "hardcoded",
|
|
},
|
|
],
|
|
},
|
|
"primaryAlias": "testAlias",
|
|
"tags": [
|
|
"tag1",
|
|
],
|
|
"title": "mockTitle",
|
|
"lastUpdatedBy": "hardcoded",
|
|
"updatedAt": "2019-02-04T20:34:12.000Z",
|
|
"version": undefined,
|
|
"viewCount": 1337,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`NotesService toNoteMetadataDto works 1`] = `
|
|
{
|
|
"aliases": [
|
|
{
|
|
"name": "testAlias",
|
|
"noteId": "testId",
|
|
"primaryAlias": true,
|
|
},
|
|
],
|
|
"createdAt": "2019-02-04T20:34:12.000Z",
|
|
"description": "mockDescription",
|
|
"editedBy": [
|
|
"hardcoded",
|
|
],
|
|
"id": "testId",
|
|
"permissions": {
|
|
"owner": "hardcoded",
|
|
"sharedToGroups": [
|
|
{
|
|
"canEdit": true,
|
|
"groupName": "testGroup",
|
|
},
|
|
],
|
|
"sharedToUsers": [
|
|
{
|
|
"canEdit": true,
|
|
"username": "hardcoded",
|
|
},
|
|
],
|
|
},
|
|
"primaryAlias": "testAlias",
|
|
"tags": [
|
|
"tag1",
|
|
],
|
|
"title": "mockTitle",
|
|
"lastUpdatedBy": "hardcoded",
|
|
"updatedAt": "2019-02-04T20:34:12.000Z",
|
|
"version": undefined,
|
|
"viewCount": 1337,
|
|
}
|
|
`;
|
|
|
|
exports[`NotesService toNotePermissionsDto works 1`] = `
|
|
{
|
|
"owner": "hardcoded",
|
|
"sharedToGroups": [
|
|
{
|
|
"canEdit": true,
|
|
"groupName": "testGroup",
|
|
},
|
|
],
|
|
"sharedToUsers": [
|
|
{
|
|
"canEdit": true,
|
|
"username": "hardcoded",
|
|
},
|
|
],
|
|
}
|
|
`;
|