fix: correctly respect logging option (#2013)

* test: update to using jest for unit tests

* remove mocha types

* revert to using mocha for testrunner.ts

* add logger unit testing

* fix reftest previewer scaling

* fix LoggerOptions to interface

* fix linting
This commit is contained in:
Niklas von Hertzen
2019-09-25 03:37:59 -07:00
committed by GitHub
parent 99f105cb66
commit 34b06d6365
17 changed files with 2552 additions and 164 deletions

View File

@ -42,6 +42,8 @@ function onBrowserChange(browserTest: Test) {
previewImage.src = `/results/${browserTest.screenshot}.png`;
if (browserTest.devicePixelRatio > 1) {
previewImage.style.transform = `scale(${1 / browserTest.devicePixelRatio})`;
} else {
previewImage.style.transform = '';
}
}
}