File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,14 @@ class ResembleHelper extends Helper {
1616  /** 
1717   * Compare Images 
1818   *  
19-    * @param  image1 
20-    * @param  image2 
19+    * @param  image 
2120   * @param  diffImage 
2221   * @param  options 
2322   * @returns  {Promise<any | never> } 
2423   */ 
25-   async  _compareImages ( image1 ,   image2 ,  diffImage ,  options )  { 
26-     image1  =  this . config . baseFolder  +  image1 ; 
27-     image2  =  this . config . screenshotFolder  +  image2 ; 
24+   async  _compareImages ( image ,  diffImage ,  options )  { 
25+     const   image1  =  this . config . baseFolder  +  image ; 
26+     const   image2  =  this . config . screenshotFolder  +  image ; 
2827
2928    return  new  Promise ( ( resolve ,  reject )  =>  { 
3029
@@ -63,14 +62,13 @@ class ResembleHelper extends Helper {
6362
6463  /** 
6564   * 
66-    * @param  image1  
65+    * @param  image  
6766   * @param  options 
6867   * @returns  {Promise<*> } 
6968   */ 
70-   async  _fetchMisMatchPercentage ( image1 ,  options )  { 
71-     const  image2  =  image1 ; 
72-     const  diffImage  =  "Diff_"  +  image1 . split ( "." ) [ 0 ] ; 
73-     const  result  =  this . _compareImages ( image1 ,  image2 ,  diffImage ,  options ) ; 
69+   async  _fetchMisMatchPercentage ( image ,  options )  { 
70+     const  diffImage  =  "Diff_"  +  image . split ( "." ) [ 0 ] ; 
71+     const  result  =  this . _compareImages ( image ,  diffImage ,  options ) ; 
7472    const  data  =  await  Promise . resolve ( result ) ; 
7573    return  data . misMatchPercentage ; 
7674  } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments