🧹 Remove unnecessary whitespace in useAuth composable unit tests
This commit is contained in:
@@ -35,7 +35,7 @@ describe('useAuth Composable', () => {
|
|||||||
|
|
||||||
it('has authentication state properties', () => {
|
it('has authentication state properties', () => {
|
||||||
const auth = useAuth();
|
const auth = useAuth();
|
||||||
|
|
||||||
expect(auth.token.value).toBeNull();
|
expect(auth.token.value).toBeNull();
|
||||||
expect(auth.user.value).toBeNull();
|
expect(auth.user.value).toBeNull();
|
||||||
expect(auth.isAuthenticated.value).toBe(false);
|
expect(auth.isAuthenticated.value).toBe(false);
|
||||||
@@ -44,7 +44,7 @@ describe('useAuth Composable', () => {
|
|||||||
|
|
||||||
it('has authentication methods', () => {
|
it('has authentication methods', () => {
|
||||||
const auth = useAuth();
|
const auth = useAuth();
|
||||||
|
|
||||||
expect(typeof auth.login).toBe('function');
|
expect(typeof auth.login).toBe('function');
|
||||||
expect(typeof auth.logout).toBe('function');
|
expect(typeof auth.logout).toBe('function');
|
||||||
expect(typeof auth.initializeAuth).toBe('function');
|
expect(typeof auth.initializeAuth).toBe('function');
|
||||||
@@ -58,7 +58,7 @@ describe('useAuth Composable', () => {
|
|||||||
|
|
||||||
it('has hasPermission method', () => {
|
it('has hasPermission method', () => {
|
||||||
const auth = useAuth();
|
const auth = useAuth();
|
||||||
|
|
||||||
// Should handle missing user
|
// Should handle missing user
|
||||||
expect(auth.hasPermission('admin')).toBe(false);
|
expect(auth.hasPermission('admin')).toBe(false);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user