Skip to content

Commit

Permalink
Improves colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 2, 2023
1 parent c869f86 commit 91da4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adapters/Phpunit/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ public function writeErrorsSummary(State $state): void
render(sprintf(<<<'HTML'
<div class="flex justify-between mx-2">
<span class="%s">
<span class="px-1 bg-%s font-bold uppercase">%s</span> <span class="font-bold">%s</span><span class="text-gray mx-1">></span><span>%s</span>
<span class="px-1 bg-%s %s font-bold uppercase">%s</span> <span class="font-bold">%s</span><span class="text-gray mx-1">></span><span>%s</span>
</span>
<span class="ml-1">
%s
</span>
</div>
HTML, $truncateClasses, $testResult->color, $testResult->type, $testCaseName, $description, $throwableClassName));
HTML, $truncateClasses, $testResult->color === 'yellow' ? 'yellow-400' : $testResult->color, $testResult->color === 'yellow' ? 'text-black' : '',$testResult->type, $testCaseName, $description, $throwableClassName));

$this->writeError($testResult->throwable);
}, $errors);
Expand Down

0 comments on commit 91da4cd

Please sign in to comment.