mirror of
https://github.com/langgenius/dify.git
synced 2026-07-20 19:50:06 -04:00
style(web): format pending-safe sync files
This commit is contained in:
@@ -73,7 +73,9 @@ vi.mock('@/app/components/base/amplitude/registration-tracking', () => ({
|
||||
flushRegistrationSuccess: vi.fn(),
|
||||
}))
|
||||
|
||||
function createProfileQueryData(overrides: Partial<GetAccountProfileResponse> = {}): ProfileQueryData {
|
||||
function createProfileQueryData(
|
||||
overrides: Partial<GetAccountProfileResponse> = {},
|
||||
): ProfileQueryData {
|
||||
return {
|
||||
profile: {
|
||||
id: 'user-1',
|
||||
@@ -209,7 +211,10 @@ describe('amplitudeIdentitySyncAtom', () => {
|
||||
await flushAsync()
|
||||
const settledCallCount = vi.mocked(setUserId).mock.calls.length
|
||||
|
||||
queryClient.setQueryData(['user-profile'], createProfileQueryData({ avatar: 'changed-avatar' }))
|
||||
queryClient.setQueryData(
|
||||
['user-profile'],
|
||||
createProfileQueryData({ avatar: 'changed-avatar' }),
|
||||
)
|
||||
await flushAsync()
|
||||
|
||||
expect(setUserId).toHaveBeenCalledTimes(settledCallCount)
|
||||
|
||||
@@ -11,7 +11,9 @@ import { systemFeaturesOrNullAtom } from './system-features-state'
|
||||
const versionQueryAtom = atomWithQuery((get) => {
|
||||
const meta = get(accountProfileMetaOrNullAtom)
|
||||
const systemFeatures = get(systemFeaturesOrNullAtom)
|
||||
const enabled = Boolean(meta?.currentVersion && systemFeatures && !systemFeatures.branding.enabled)
|
||||
const enabled = Boolean(
|
||||
meta?.currentVersion && systemFeatures && !systemFeatures.branding.enabled,
|
||||
)
|
||||
|
||||
return consoleQuery.version.get.queryOptions({
|
||||
input: {
|
||||
|
||||
Reference in New Issue
Block a user