File tree 1 file changed +8
-10
lines changed
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 {
16
16
/**
17
17
* Compare Images
18
18
*
19
- * @param image1
20
- * @param image2
19
+ * @param image
21
20
* @param diffImage
22
21
* @param options
23
22
* @returns {Promise<any | never> }
24
23
*/
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 ;
28
27
29
28
return new Promise ( ( resolve , reject ) => {
30
29
@@ -63,14 +62,13 @@ class ResembleHelper extends Helper {
63
62
64
63
/**
65
64
*
66
- * @param image1
65
+ * @param image
67
66
* @param options
68
67
* @returns {Promise<*> }
69
68
*/
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 ) ;
74
72
const data = await Promise . resolve ( result ) ;
75
73
return data . misMatchPercentage ;
76
74
}
You can’t perform that action at this time.
0 commit comments