David Mehren
691152579b
Update API routes in private API E2E tests
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
9489fbaa79
Migrate private notes API E2E test to global TestSetup
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:41 +02:00
Yannick Bungers
276d423ee2
Fix tests with using sessions in e2e tests of private api
...
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 20:54:27 +02:00
Abhilasha Sinha
9d6aa10923
Add new API to purge note history #1064
...
Signed-off-by: Abhilasha Sinha <abhisinha662000@gmail.com>
Combine the describe block
Signed-off-by: Abhilasha Sinha <abhisinha662000@gmail.com>
Fix naming
Signed-off-by: Abhilasha Sinha <abhisinha662000@gmail.com>
Rename purgeRevision to purgeRevisions
Signed-off-by: Abhilasha Sinha <abhisinha662000@gmail.com>
Fix notes e2e test description
Signed-off-by: Abhilasha Sinha <abhisinha662000@gmail.com>
Add yarn.lock
Fix lint and format
Signed-off-by: Abhilasha Sinha <abhisinha662000@gmail.com>
2021-09-07 21:23:26 +05:30
David Mehren
5c7a787d7e
MediaService: Refactor saveFile
...
The function now expects a `Note` object instead of a noteId
and a `User` instead of a username to
make it more consistent with other functions.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-04 22:40:15 +02:00
David Mehren
bcc9ec9c75
Enforce import order with prettier
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-08-29 18:45:46 +02:00
Philip Molares
fb79f44b1f
chore(test): Change test to work with publicId
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-17 20:27:44 +02:00
David Mehren
5e61de9bd5
Use node12 TypeScript base config
...
TypeScript recommends using a base config from https://github.com/tsconfig/bases .
Using this config reduces compile times by ~30%
and the size of the dist folder by ~45%.
It also enables the recommended `esModuleInterop` option,
which necessitated some changes to imports.
See also https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-29 22:55:01 +02:00
Philip Molares
6ac267a226
PrivateApi: Add option to keep media to DELETE /notes/{note}
...
This adds a body to the route DELETE /notes/{note} of the private api to specify if the associated media uploads of the note should be kept or deleted.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 23:13:13 +02:00
Philip Molares
434bc55bab
Tests: Removed all eslint-disable lines
...
As we now disable what we don't need in the eslint config, we don't need this anymore.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-16 10:14:05 +02:00
Philip Molares
70e7318180
NotesE2EPrivate: Fix copy&paste error
...
Since large parts of this test were copied from the public api e2e test, somethings still used the public api e2e test files.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:24 +02:00
Philip Molares
a2e7616484
E2ETests: Use recursive for 'uploads/' deletion.
...
This ensures the folder is always deleted, even if there are still files (from previous broken tests) in it.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:24 +02:00
Philip Molares
8f2cc55e5b
PrivateE2ENotes: Add E2E test for private api /notes routes
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 21:29:51 +01:00