🎨 Reformat import statements and destructuring for improved readability
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
|
||||
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
||||
import { useChallongeClient } from '../../../src/composables/useChallongeClient.js';
|
||||
import { ScopeType, AuthType } from '../../../src/services/challonge.service.js';
|
||||
import {
|
||||
ScopeType,
|
||||
AuthType
|
||||
} from '../../../src/services/challonge.service.js';
|
||||
|
||||
// Mock dependencies
|
||||
vi.mock('../../../src/composables/useChallongeApiKey.js', () => ({
|
||||
@@ -46,13 +49,8 @@ describe('useChallongeClient', () => {
|
||||
});
|
||||
|
||||
it('creates composable with default values', () => {
|
||||
const {
|
||||
apiVersion,
|
||||
tournamentScope,
|
||||
debugMode,
|
||||
apiKey,
|
||||
client
|
||||
} = useChallongeClient();
|
||||
const { apiVersion, tournamentScope, debugMode, apiKey, client } =
|
||||
useChallongeClient();
|
||||
|
||||
expect(apiVersion.value).toBe('v2.1');
|
||||
expect(tournamentScope.value).toBe(ScopeType.USER);
|
||||
|
||||
Reference in New Issue
Block a user