🎨 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 { 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user