mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-13 12:57:10 +02:00
Enhances test coverage by making the usePermissions mock dynamic and adding test cases that verify: - Admin users can see NowPlayingPanel when adminOnly is true - Non-admin users cannot see NowPlayingPanel when adminOnly is true - Non-admin users can see NowPlayingPanel when adminOnly is false - Non-admin users cannot see NowPlayingPanel when feature is disabled This ensures the admin-only permission check works correctly for all user types. |
||
|---|---|---|
| .. | ||
| bin | ||
| build | ||
| public | ||
| src | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| embed.go | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| prettier.config.js | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.js | ||