File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 ( ) => {
You can’t perform that action at this time.
0 commit comments