🎨 Reformat import statements and destructuring for improved readability

This commit is contained in:
2026-01-29 05:09:43 +00:00
parent 0148d0a1f1
commit 2723b96c0b

View File

@@ -4,7 +4,10 @@
import { describe, it, expect, beforeEach, vi } from 'vitest'; import { describe, it, expect, beforeEach, vi } from 'vitest';
import { useChallongeClient } from '../../../src/composables/useChallongeClient.js'; 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 // Mock dependencies
vi.mock('../../../src/composables/useChallongeApiKey.js', () => ({ vi.mock('../../../src/composables/useChallongeApiKey.js', () => ({
@@ -46,13 +49,8 @@ describe('useChallongeClient', () => {
}); });
it('creates composable with default values', () => { it('creates composable with default values', () => {
const { const { apiVersion, tournamentScope, debugMode, apiKey, client } =
apiVersion, useChallongeClient();
tournamentScope,
debugMode,
apiKey,
client
} = useChallongeClient();
expect(apiVersion.value).toBe('v2.1'); expect(apiVersion.value).toBe('v2.1');
expect(tournamentScope.value).toBe(ScopeType.USER); expect(tournamentScope.value).toBe(ScopeType.USER);