File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,13 @@ describe("Results cases", () => {
9191 const cxCommandOutput : CxCommandOutput = await auth . riskManagementResults (
9292 projectId
9393 ) ;
94- console . log ( "Risk Management Results: " + JSON . stringify ( cxCommandOutput ) ) ;
94+
95+ var str = JSON . stringify ( cxCommandOutput ) ;
96+ console . log ( "Risk Management Exit code 1: " + cxCommandOutput . exitCode ) ;
97+ console . log ( "Risk Management Results 1: " + str ) ;
9598
9699 expect ( cxCommandOutput . exitCode ) . toBe ( 0 ) ;
97- expect ( cxCommandOutput . payload . length ) . toBeGreaterThan ( 0 ) ;
100+ expect ( str ) . toBeGreaterThan ( 0 ) ;
98101 } ) ;
99102
100103
@@ -108,13 +111,13 @@ describe("Results cases", () => {
108111 projectId ,
109112 10
110113 ) ;
111- console . log (
112- "Risk Management Results with limit 10: " +
113- JSON . stringify ( cxCommandOutput )
114- ) ;
114+
115+ var str = JSON . stringify ( cxCommandOutput ) ;
116+ console . log ( "Risk Management Exit code 2: " + cxCommandOutput . exitCode ) ;
117+ console . log ( "Risk Management Results 2: " + str ) ;
115118
116119 expect ( cxCommandOutput . exitCode ) . toBe ( 0 ) ;
117- expect ( cxCommandOutput . payload . length ) . toBeLessThanOrEqual ( 10 ) ;
120+ expect ( str ) . toBeGreaterThan ( 0 ) ;
118121 } ) ;
119122} ) ;
120123
You can’t perform that action at this time.
0 commit comments