AI Implementation feature(841): First-Start Create Admin Modal 1.00 (#3)

This commit was merged in pull request #3.
This commit is contained in:
2026-07-21 15:07:44 +00:00
parent 9f67ec8c50
commit 960516a7bc
18 changed files with 518 additions and 112 deletions
+15
View File
@@ -0,0 +1,15 @@
import { shouldShowAdminNav } from '../../frontend/src/app/features/home/home.shell';
describe('shouldShowAdminNav', () => {
it('shows admin nav when authenticated and role is admin', () => {
expect(shouldShowAdminNav({ isAuthenticated: true, role: 'admin' })).toBe(true);
});
it('hides admin nav when not authenticated', () => {
expect(shouldShowAdminNav({ isAuthenticated: false, role: undefined })).toBe(false);
});
it('hides admin nav for player role', () => {
expect(shouldShowAdminNav({ isAuthenticated: true, role: 'player' })).toBe(false);
});
});