feat(auth): refine demo mode support using SHUMAI_DEMO_MODE API

This commit is contained in:
yiling
2026-06-19 00:36:23 +08:00
parent 5c285b172b
commit 53c132e41d
9 changed files with 16 additions and 17 deletions
+4 -2
View File
@@ -17,7 +17,8 @@ describe('authn api', () => {
it('GET /signup-info', async () => {
mockGetSignupInfo.mockResolvedValue({
userCount: 5,
initialized: true,
demoMode: false,
})
const app = new Hono().route('/', authnRoute)
@@ -25,7 +26,8 @@ describe('authn api', () => {
expect(res.status).toBe(200)
expect(await res.json()).toEqual({
userCount: 5,
initialized: true,
demoMode: false,
})
})
})