File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,11 @@ export async function compareScreenshot(
104
104
// compare the two images pixel by pixel to
105
105
// figure out a mismatch value
106
106
107
- // figure out the actual width and height of the screenshot
108
- const naturalWidth = Math . round ( emulateConfig . viewport . width * emulateConfig . viewport . deviceScaleFactor ) ;
109
- const naturalHeight = Math . round ( emulateConfig . viewport . height * emulateConfig . viewport . deviceScaleFactor ) ;
110
-
111
107
const pixelMatchInput : d . PixelMatchInput = {
112
108
imageAPath : join ( screenshotBuildData . imagesDir , screenshot . diff . imageA ) ,
113
109
imageBPath : join ( screenshotBuildData . imagesDir , screenshot . diff . imageB ) ,
114
- width : naturalWidth ,
115
- height : naturalHeight ,
110
+ width,
111
+ height,
116
112
pixelmatchThreshold : pixelmatchThreshold ,
117
113
} ;
118
114
You can’t perform that action at this time.
0 commit comments