Skip to content

Commit a2c8a4d

Browse files
committed
fix: update setup E2E test to accept new status fields
1 parent a8ab01c commit a2c8a4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/backend/test/setup.e2e-spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ describe('First-run setup wizard', () => {
3636
describe('GET /api/v1/setup/status', () => {
3737
it('returns needsSetup=true when user table is empty', async () => {
3838
const res = await request(app.getHttpServer()).get('/api/v1/setup/status').expect(200);
39-
expect(res.body).toEqual({ needsSetup: true });
39+
expect(res.body).toMatchObject({ needsSetup: true });
40+
expect(res.body).toHaveProperty('socialProviders');
41+
expect(res.body).toHaveProperty('isLocalMode');
42+
expect(res.body).toHaveProperty('ollamaAvailable');
4043
});
4144

4245
it('returns needsSetup=false after a user has been inserted', async () => {
@@ -47,7 +50,7 @@ describe('First-run setup wizard', () => {
4750
);
4851

4952
const res = await request(app.getHttpServer()).get('/api/v1/setup/status').expect(200);
50-
expect(res.body).toEqual({ needsSetup: false });
53+
expect(res.body).toMatchObject({ needsSetup: false });
5154
});
5255

5356
it('is a public endpoint (no auth required)', async () => {

0 commit comments

Comments
 (0)