From 03c363be76b39a3119a149d4937eea9ab2c97651 Mon Sep 17 00:00:00 2001 From: Ruben Izmailyan Date: Sat, 20 Jul 2024 12:43:16 -0500 Subject: [PATCH] Cleanups --- packages/core/src/api/rest/auth.ts | 2 +- packages/core/tests/api/rest/auth.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/api/rest/auth.ts b/packages/core/src/api/rest/auth.ts index c3881c97..7e385651 100644 --- a/packages/core/src/api/rest/auth.ts +++ b/packages/core/src/api/rest/auth.ts @@ -33,7 +33,7 @@ type Revoke = NoContentData | UnauthorizedData export type SessionResponse = FetchResponse export type UnprocessableResponse = FetchResponse -// https://www.quiltt.dev/api-reference/rest/auth# +// https://www.quiltt.dev/api-reference/auth export class AuthAPI { clientId: string | undefined diff --git a/packages/core/tests/api/rest/auth.test.ts b/packages/core/tests/api/rest/auth.test.ts index 410bcedf..5410e7b8 100644 --- a/packages/core/tests/api/rest/auth.test.ts +++ b/packages/core/tests/api/rest/auth.test.ts @@ -1,7 +1,9 @@ -import { AuthAPI, PasscodePayload, UsernamePayload } from '@/api/rest/auth' +import { AuthAPI } from '@/api/rest/auth' import { fetchWithRetry } from '@/api/rest/fetchWithRetry' import { endpointAuth } from '@/configuration' import { describe, it, beforeEach, expect, vi } from 'vitest' + +import type { PasscodePayload, UsernamePayload } from '@/api/rest/auth' import type { Mock, MockInstance } from 'vitest' vi.mock('@/api/rest/fetchWithRetry', () => ({