From 39b7b3ca5180192db45f5ea119a6ffb37bcd5407 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 05:53:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- e2e/support/marketplace-stub.ts | 16 +++++++++++++--- web/__tests__/proxy-frame-options.spec.ts | 4 +--- web/utils/__tests__/login-redirect.spec.ts | 2 -- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/e2e/support/marketplace-stub.ts b/e2e/support/marketplace-stub.ts index cb48a7c16bc..7df260198e3 100644 --- a/e2e/support/marketplace-stub.ts +++ b/e2e/support/marketplace-stub.ts @@ -66,10 +66,18 @@ const frozenCollections = [ const frozenCollectionPlugins: Record = { 'e2e-frozen-featured': Array.from({ length: 8 }, (_, index) => - makeFrozenPlugin(`featured-plugin-${index + 1}`, `Featured Plugin ${index + 1}`, 12_000 - index * 100), + makeFrozenPlugin( + `featured-plugin-${index + 1}`, + `Featured Plugin ${index + 1}`, + 12_000 - index * 100, + ), ), 'e2e-frozen-popular': Array.from({ length: 8 }, (_, index) => - makeFrozenPlugin(`popular-plugin-${index + 1}`, `Popular Plugin ${index + 1}`, 8_000 - index * 100), + makeFrozenPlugin( + `popular-plugin-${index + 1}`, + `Popular Plugin ${index + 1}`, + 8_000 - index * 100, + ), ), } @@ -138,7 +146,9 @@ const handleRequest = (request: IncomingMessage, response: ServerResponse) => { if (!stubResponse) { console.warn(`Marketplace stub has no fixture for ${method} ${url.pathname}; returning 404.`) response.writeHead(404, { 'Content-Type': 'application/json' }) - response.end(JSON.stringify({ code: 404, msg: 'Marketplace stub fixture not found', data: null })) + response.end( + JSON.stringify({ code: 404, msg: 'Marketplace stub fixture not found', data: null }), + ) return } diff --git a/web/__tests__/proxy-frame-options.spec.ts b/web/__tests__/proxy-frame-options.spec.ts index 9c44f7b14f3..4795693fe27 100644 --- a/web/__tests__/proxy-frame-options.spec.ts +++ b/web/__tests__/proxy-frame-options.spec.ts @@ -91,9 +91,7 @@ describe('proxy frame options', () => { it('should deny framing for the Marketplace OAuth authorize route', () => { const response = proxy( - createRequest( - 'https://cloud.dify.ai/account/oauth/authorize?client_id=marketplace-client', - ), + createRequest('https://cloud.dify.ai/account/oauth/authorize?client_id=marketplace-client'), ) expect(response.headers.get('x-frame-options')).toBe('DENY') diff --git a/web/utils/__tests__/login-redirect.spec.ts b/web/utils/__tests__/login-redirect.spec.ts index 5ba8eee12ad..f9099d26cb4 100644 --- a/web/utils/__tests__/login-redirect.spec.ts +++ b/web/utils/__tests__/login-redirect.spec.ts @@ -59,7 +59,6 @@ describe('resolveLoginRedirectTarget', () => { }), ).toEqual({ kind: 'absolute', href: 'https://self-hosted.example:8443/apps' }) }) - }) describe('legacy encoding compatibility', () => { @@ -140,7 +139,6 @@ describe('resolveLoginRedirectTarget', () => { }), ).toBeNull() }) - }) })