mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 16:19:10 +03:00
fix prettier
This commit is contained in:
1 parent
d72e44c551
commit
a3cd36995e
20 files changed
+19
-38
No files matched your search
@@ -165,4 +165,3 @@ describe('bedrockRegionMap', () => {
|
||||
expect(bedrockRegionMap.euc1).toBe('eu-central-1')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -105,4 +105,3 @@ describe('prepareMessagesForAPI', () => {
|
||||
expect(result[0].id).toBe('msg-3')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -26,4 +26,3 @@ describe('getDefaultModelForProvider', () => {
|
||||
expect(result).toBeUndefined()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -145,4 +145,3 @@ describe('apiWrapper', () => {
|
||||
expect(mockRes.json).toHaveBeenCalledWith({ error: authError })
|
||||
})
|
||||
})
|
||||
|
||||
@@ -61,4 +61,3 @@ describe('enrichLintsQuery', () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -137,4 +137,3 @@ describe('breadcrumbs', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -82,4 +82,3 @@ describe('constants/api', () => {
|
||||
expect(DEFAULT_PROJECT).toHaveProperty('inserted_at')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -165,4 +165,3 @@ describe('createNavigationHandler', () => {
|
||||
expect(mockWindowOpen).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -73,4 +73,3 @@ describe('createProjectSupabaseClient', () => {
|
||||
expect(createClient).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -150,4 +150,3 @@ describe('useTrack', () => {
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -44,4 +44,3 @@ describe('void', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user