server
server copied to clipboard
Add files actions testing
- [x] Sidebar action
- [x] Delete action
- [x] Download action
- [x] Open folder action
Coverage
Coverage is broken, see https://github.com/jestjs/jest/pull/14207 But here is the results, all 4 actions now have 100%
-----------------------------|---------|----------|---------|---------|-------------------------------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------------------|---------|----------|---------|---------|-------------------------------------------------------------
All files | 88.39 | 76.05 | 83.92 | 88.7 |
apps/dav/src/views | 70.58 | 50 | 16.66 | 70.58 |
CalDavSettings.vue | 70.58 | 50 | 16.66 | 70.58 | 128-320
apps/files/src/actions | 100 | 95.45 | 100 | 100 |
deleteAction.ts | 100 | 100 | 100 | 100 |
downloadAction.ts | 100 | 80 | 100 | 100 | 38
openFolderAction.ts | 100 | 100 | 100 | 100 |
sidebarAction.ts | 100 | 100 | 100 | 100 |
apps/files/src/services | 65.95 | 55.88 | 73.33 | 65.9 |
FileAction.ts | 65.95 | 55.88 | 73.33 | 65.9 | 117-121,126,130,134,138,143,147,151,155,159,163,177-178,185
apps/files_sharing/src/lib | 100 | 100 | 100 | 100 |
SharePermissionsToolBox.js | 100 | 100 | 100 | 100 |
core/src/OC | 100 | 100 | 100 | 100 |
requesttoken.js | 100 | 100 | 100 | 100 |
-----------------------------|---------|----------|---------|---------|-------------------------------------------------------------
/compile amend /