@@ -3,12 +3,10 @@ import {BaseTest} from "./BaseTest";
33import * as fs from "fs" ;
44import CxWrapperFactory from "../main/wrapper/CxWrapperFactory" ;
55
6- const cxWrapperFactory = new CxWrapperFactory ( ) ;
7-
86describe ( "Results cases" , ( ) => {
97 const cxScanConfig = new BaseTest ( ) ;
108 it ( 'Result Test Successful case' , async ( ) => {
11- const auth = await cxWrapperFactory . createWrapper ( cxScanConfig ) ;
9+ const auth = await CxWrapperFactory . createWrapper ( cxScanConfig ) ;
1210 const cxCommandOutput : CxCommandOutput = await auth . scanList ( "statuses=Completed" ) ;
1311 const sampleId = cxCommandOutput . payload . pop ( ) . id ;
1412
@@ -18,7 +16,7 @@ describe("Results cases",() => {
1816 } ) ;
1917
2018 it ( 'Result Test With Agent Flug Successful case' , async ( ) => {
21- const auth = await cxWrapperFactory . createWrapper ( cxScanConfig ) ;
19+ const auth = await CxWrapperFactory . createWrapper ( cxScanConfig ) ;
2220 const cxCommandOutput : CxCommandOutput = await auth . scanList ( "statuses=Completed" ) ;
2321 const sampleId = cxCommandOutput . payload . pop ( ) . id ;
2422
@@ -28,7 +26,7 @@ describe("Results cases",() => {
2826 } ) ;
2927
3028 it ( 'Result List Successful case' , async ( ) => {
31- const auth = await cxWrapperFactory . createWrapper ( cxScanConfig ) ;
29+ const auth = await CxWrapperFactory . createWrapper ( cxScanConfig ) ;
3230 const scanList : CxCommandOutput = await auth . scanList ( "statuses=Completed" ) ;
3331 let output ;
3432 while ( ! output && scanList && scanList . payload && scanList . payload . length > 0 ) {
@@ -44,7 +42,7 @@ describe("Results cases",() => {
4442 } ) ;
4543
4644 it ( 'Result summary html file generation successful case' , async ( ) => {
47- const auth = await cxWrapperFactory . createWrapper ( cxScanConfig ) ;
45+ const auth = await CxWrapperFactory . createWrapper ( cxScanConfig ) ;
4846 const cxCommandOutput : CxCommandOutput = await auth . scanList ( "statuses=Completed" ) ;
4947 const sampleId = cxCommandOutput . payload . pop ( ) . id ;
5048 await auth . getResults ( sampleId , "summaryHTML" , "test" , "." ) ;
@@ -53,15 +51,15 @@ describe("Results cases",() => {
5351 } ) ;
5452
5553 it ( 'Result summary html string successful case' , async ( ) => {
56- const auth = await cxWrapperFactory . createWrapper ( cxScanConfig ) ;
54+ const auth = await CxWrapperFactory . createWrapper ( cxScanConfig ) ;
5755 const cxCommandOutput : CxCommandOutput = await auth . scanList ( "statuses=Completed" ) ;
5856 const sampleId = cxCommandOutput . payload . pop ( ) . id ;
5957 const written = await auth . getResultsSummary ( sampleId ) ;
6058 expect ( written . payload . length ) . toBeGreaterThan ( 0 ) ;
6159 } ) ;
6260
6361 it ( 'Result codebashing successful case' , async ( ) => {
64- const auth = await cxWrapperFactory . createWrapper ( cxScanConfig ) ;
62+ const auth = await CxWrapperFactory . createWrapper ( cxScanConfig ) ;
6563 const cxCommandOutput : CxCommandOutput = await auth . codeBashingList ( "79" , "PHP" , "Reflected XSS All Clients" ) ;
6664 expect ( cxCommandOutput . payload . length ) . toBeGreaterThan ( 0 ) ;
6765 } ) ;
0 commit comments