fix prettier

This commit is contained in:
Jordi Enric committed 2026-01-06 18:48:21 +01:00
1 parent d72e44c551
commit a3cd36995e
20 files changed
+19 -38

No files matched your search

-1
View File
@@ -165,4 +165,3 @@ describe('bedrockRegionMap', () => {
expect(bedrockRegionMap.euc1).toBe('eu-central-1')
})
})
-1
View File
@@ -105,4 +105,3 @@ describe('prepareMessagesForAPI', () => {
expect(result[0].id).toBe('msg-3')
})
})
-1
View File
@@ -26,4 +26,3 @@ describe('getDefaultModelForProvider', () => {
expect(result).toBeUndefined()
})
})
+5 -12
View File
@@ -51,14 +51,10 @@ describe('getOrgAIDetails', () => {
Authorization: authorization,
},
})
expect(getProjectDetail).toHaveBeenCalledWith(
{ ref: projectRef },
undefined,
{
'Content-Type': 'application/json',
Authorization: authorization,
}
)
expect(getProjectDetail).toHaveBeenCalledWith({ ref: projectRef }, undefined, {
'Content-Type': 'application/json',
Authorization: authorization,
})
expect(result).toEqual({
aiOptInLevel: 'enabled',
isLimited: true,
@@ -123,9 +119,7 @@ describe('getOrgAIDetails', () => {
})
it('should return isLimited false for non-free plan', async () => {
;(getOrganizations as any).mockResolvedValue([
{ ...mockOrg, plan: { id: 'pro' } },
])
;(getOrganizations as any).mockResolvedValue([{ ...mockOrg, plan: { id: 'pro' } }])
;(getProjectDetail as any).mockResolvedValue(mockProject)
const result = await getOrgAIDetails({ orgSlug, authorization, projectRef })
@@ -133,4 +127,3 @@ describe('getOrgAIDetails', () => {
expect(result.isLimited).toBe(false)
})
})
-1
View File
@@ -145,4 +145,3 @@ describe('apiWrapper', () => {
expect(mockRes.json).toHaveBeenCalledWith({ error: authError })
})
})
@@ -61,4 +61,3 @@ describe('enrichLintsQuery', () => {
}
})
})
+1 -6
View File
@@ -1,9 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest'
import {
getDatabaseOperations,
getDevelopmentOperations,
getDebuggingOperations,
} from './mcp'
import { getDatabaseOperations, getDevelopmentOperations, getDebuggingOperations } from './mcp'
import { executeQuery } from './query'
import { listMigrationVersions, applyAndTrackMigrations } from './migrations'
import { getProjectSettings } from './settings'
@@ -250,4 +246,3 @@ describe('getDebuggingOperations', () => {
expect(result[1].name).toBe('lint3')
})
})
@@ -91,4 +91,3 @@ describe('getProjectSettings', () => {
expect(result.status).toBe('ACTIVE_HEALTHY')
})
})
@@ -109,4 +109,3 @@ describe('getConnectionString', () => {
expect(result).toContain('5432')
})
})
-1
View File
@@ -137,4 +137,3 @@ describe('breadcrumbs', () => {
})
})
})
-1
View File
@@ -82,4 +82,3 @@ describe('constants/api', () => {
expect(DEFAULT_PROJECT).toHaveProperty('inserted_at')
})
})
-1
View File
@@ -122,4 +122,3 @@ describe('constants/index', () => {
expect(constants.UUID_REGEX).toBeInstanceOf(RegExp)
})
})
@@ -101,4 +101,3 @@ describe('useDefaultProvider', () => {
expect(constants.PASSWORD_STRENGTH).toHaveProperty(4)
})
})
+6 -2
View File
@@ -1,5 +1,10 @@
import { describe, it, expect } from 'vitest'
import { API_ACCESS_ROLES, isApiAccessRole, API_PRIVILEGE_TYPES, isApiPrivilegeType } from './data-api-types'
import {
API_ACCESS_ROLES,
isApiAccessRole,
API_PRIVILEGE_TYPES,
isApiPrivilegeType,
} from './data-api-types'
describe('data-api-types', () => {
describe('isApiAccessRole', () => {
@@ -44,4 +49,3 @@ describe('data-api-types', () => {
})
})
})
+7 -2
View File
@@ -14,7 +14,13 @@ describe('captureCriticalError', () => {
describe('with ResponseError', () => {
it('should capture 5XX errors', () => {
const error = new ResponseError('Internal server error', 500, undefined, undefined, '/api/test')
const error = new ResponseError(
'Internal server error',
500,
undefined,
undefined,
'/api/test'
)
const context = 'test operation'
captureCriticalError(error, context)
@@ -156,4 +162,3 @@ describe('captureCriticalError', () => {
})
})
})
@@ -36,4 +36,3 @@ describe('isHomeNewVariant', () => {
})
})
})
-1
View File
@@ -165,4 +165,3 @@ describe('createNavigationHandler', () => {
expect(mockWindowOpen).not.toHaveBeenCalled()
})
})
@@ -73,4 +73,3 @@ describe('createProjectSupabaseClient', () => {
expect(createClient).not.toHaveBeenCalled()
})
})
-1
View File
@@ -150,4 +150,3 @@ describe('useTrack', () => {
)
})
})
-1
View File
@@ -44,4 +44,3 @@ describe('void', () => {
})
})
})