=== -> !==
This commit is contained in:
Родитель
68c67b64c5
Коммит
7c26fe46b8
|
@ -1378,7 +1378,7 @@ const assertWithinDelta = (actual, expect, delta, label) => {
|
|||
const isScaleFactorRounding = () => {
|
||||
const {scaleFactor} = screen.getPrimaryDisplay()
|
||||
// Return true if scale factor is non-integer value
|
||||
if (Math.round(scaleFactor) === scaleFactor) return true
|
||||
if (Math.round(scaleFactor) !== scaleFactor) return true
|
||||
// Return true if scale factor is odd number above 2
|
||||
return scaleFactor > 2 && scaleFactor % 2 === 1
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче