Skip to content

Commit

Permalink
update html report snippet to match new dark theme (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-vrijswijk authored Mar 22, 2021
1 parent 4da0e7e commit 200e361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/stryker4s/report/HtmlReporter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class HtmlReporter(fileIO: FileIO)(implicit log: Logger, p: Parallel[IO]) extend
| Please use a latest version of an evergreen browser (Firefox, Chrome, Safari, Opera, etc).
| </mutation-test-report-app>
| <script>
| const app = document.getElementsByTagName('mutation-test-report-app').item(0)
| const app = document.getElementsByTagName('mutation-test-report-app').item(0);
| function updateTheme() {
| document.body.style.backgroundColor = app.theme === 'dark' ? '#222' : '#fff';
| document.body.style.backgroundColor = app.themeBackgroundColor;
| }
| app.addEventListener('theme-changed', updateTheme);
| updateTheme();
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/stryker4s/report/HtmlReporterTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class HtmlReporterTest extends Stryker4sIOSuite with MockitoIOSuite with LogMatc
| Please use a latest version of an evergreen browser (Firefox, Chrome, Safari, Opera, etc).
| </mutation-test-report-app>
| <script>
| const app = document.getElementsByTagName('mutation-test-report-app').item(0)
| const app = document.getElementsByTagName('mutation-test-report-app').item(0);
| function updateTheme() {
| document.body.style.backgroundColor = app.theme === 'dark' ? '#222' : '#fff';
| document.body.style.backgroundColor = app.themeBackgroundColor;
| }
| app.addEventListener('theme-changed', updateTheme);
| updateTheme();
Expand Down

0 comments on commit 200e361

Please sign in to comment.