diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-11 11:01:01 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-13 21:30:43 +0100 |
commit | ede015a4248e6a4304a18e34e475a04d1a5bf717 (patch) | |
tree | e43da88526466e89e6664a296c23650e92d46e23 /__tests__ | |
parent | 04ae68a8f72da18c1731f7c83e059304232c4e38 (diff) | |
download | nextcloud-server-ede015a4248e6a4304a18e34e475a04d1a5bf717.tar.gz nextcloud-server-ede015a4248e6a4304a18e34e475a04d1a5bf717.zip |
fix(files_trashbin): correctly sort custom columns in trashbin view
1. Refactor to make code better testable (move columns and view source to `files_views` folder)
2. Fix deletion time fallback (JS Date vs unix timestamp for
"delted"-column)
3. Correctly sort `deletedBy` and `originalLocation` columns to use
natural sort like any other column
4. Add unit tests for columns and views
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to '__tests__')
-rw-r--r-- | __tests__/setup-global.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/__tests__/setup-global.js b/__tests__/setup-global.js new file mode 100644 index 00000000000..93230b0deab --- /dev/null +++ b/__tests__/setup-global.js @@ -0,0 +1,7 @@ +/** + * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: CC0-1.0 + */ +export function setup() { + process.env.TZ = 'UTC' +} |