hedgedoc/backend/src/notes/__snapshots__/notes.service.spec.ts.snap
Erik Michelson c9faf81e27
refactor: replace TypeORM with knex.js
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>
2025-05-29 00:00:23 +00:00

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",
},
],
}
`;