feat: First-Start Create Admin Modal 1.00
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user