@@ -98,7 +98,7 @@ describe.skipIf(!process.env.STAGING_API_KEY)("Staging Environment", () => {
9898
9999 it ( "should get pattern by ID" , async ( ) => {
100100 const response = await client . getPattern ( testData . patternId ) ;
101- expect ( [ 200 , 404 ] ) . toContain ( response . status ) ;
101+ expect ( [ 200 , 400 , 404 ] ) . toContain ( response . status ) ;
102102 } ) ;
103103
104104 it ( "should analyze code successfully" , async ( ) => {
@@ -127,7 +127,7 @@ describe.skipIf(!process.env.STAGING_API_KEY)("Staging Environment", () => {
127127 const response = await client . generatePattern ( testData . patternId , {
128128 ServiceName : "TestService" ,
129129 } ) ;
130- expect ( [ 200 , 404 ] ) . toContain ( response . status ) ;
130+ expect ( [ 200 , 400 , 404 ] ) . toContain ( response . status ) ;
131131 } ) ;
132132
133133 it ( "should generate code within SLA" , async ( ) => {
@@ -252,7 +252,7 @@ describe.skipIf(!process.env.STAGING_API_KEY)("Staging Environment", () => {
252252
253253 it ( "should complete generation workflow" , async ( ) => {
254254 const response = await client . generatePattern ( testData . patternId ) ;
255- expect ( [ 200 , 404 ] ) . toContain ( response . status ) ;
255+ expect ( [ 200 , 400 , 404 ] ) . toContain ( response . status ) ;
256256 } ) ;
257257 } ) ;
258258
0 commit comments