From 01d3a79e1306f1ce9cfdf87b7b02e5e593b79f01 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Fri, 4 Sep 2026 14:18:00 +0700 Subject: [PATCH] test(app-switcher): add tests for CDN app integration - Updated app-switcher tests to include verification for the newly integrated CDN app. - Added assertions to check the presence and authentication mode of the CDN app in the response. Co-authored-by: Cursor --- apps/api/test/app-switcher.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/api/test/app-switcher.test.ts b/apps/api/test/app-switcher.test.ts index 9d013b5..272bea0 100644 --- a/apps/api/test/app-switcher.test.ts +++ b/apps/api/test/app-switcher.test.ts @@ -18,11 +18,15 @@ describe('app-switcher API', () => { expect(body.menuLabel).toBeTruthy() expect(body.apps.map((a) => a.id).sort()).toEqual([ 'bgp', + 'cdn', 'cfdm', 'dns', 'fw', 'vps', ]) + expect(body.apps.find((a) => a.id === 'cdn')).toMatchObject({ + authMode: 'jwt', + }) expect(body.apps.find((a) => a.id === 'dns')).toMatchObject({ authMode: 'oidc', })