fix(app,api): kick reasons, blocked counts and locale fallbacks (#3334)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:40:08 +02:00
1 parent a5c1362f4a
commit 4db13b0375
157 files changed
+3080 -1995

No files matched your search

@@ -198,6 +198,7 @@ describe('Email revert flow', () => {
.execute();
expect(revertResp.token.length).toBeGreaterThan(0);
expect(addJob).toHaveBeenCalledWith('syncStripeCustomerEmail', {userId: account.userId});
expect(Object.keys(revertResp).sort()).toEqual(['token', 'user', 'user_id']);
await createBuilder(harness, account.token).get('/users/@me').expect(401).execute();
const user = await createBuilder<UserPrivateResponse>(harness, revertResp.token).get('/users/@me').execute();
expect(user.email).toBe(account.email);
@@ -85,6 +85,7 @@ describe('Auth registration', () => {
});
expect(reg.token.length).toBeGreaterThan(0);
expect(reg.user_id.length).toBeGreaterThan(0);
expect(Object.keys(reg).sort()).toEqual(['token', 'user', 'user_id']);
});
it('grants wildcard admin ACL to first accepted local dev registration', async () => {
await getInstanceConfigRepository().updateCaptchaConfig({enabled: false});
@@ -84,6 +84,7 @@ describe('Auth registration policy', () => {
.execute();
expect(registration.registration_pending_approval).toBe(true);
expect(registration.user_id.length).toBeGreaterThan(0);
expect(Object.keys(registration).sort()).toEqual(['registration_pending_approval', 'user_id']);
await createBuilderWithoutAuth(harness)
.post('/auth/login')
.body({email: body.email, password: body.password})