Skip to content

Commit

Permalink
fix: correct dimming of text in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Nov 13, 2019
1 parent 0e498ef commit 2299ec7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/PostMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const TestInfo: React.FC<{ config: Config.GlobalConfig }> = ({ config }) => {
}

if (config.testPathPattern) {
const prefix = config.findRelatedTests
? 'related to files matching'
: 'matching';

return (
<Box>
<HorizontallyPadded>{prefix}</HorizontallyPadded>
<HorizontallyPadded>
<Color dim>
{config.findRelatedTests ? 'related to files matching' : 'matching'}
</Color>
</HorizontallyPadded>
<Text>
{testPathPatternToRegExp(config.testPathPattern).toString()}
</Text>
Expand All @@ -55,11 +55,12 @@ const NameInfo: React.FC<{ config: Config.GlobalConfig }> = ({ config }) => {

if (config.testNamePattern) {
return (
<LeftPadded>
<Color dim>
with tests matching &quot;{config.testNamePattern}&quot;
</Color>
</LeftPadded>
<>
<HorizontallyPadded>
<Color dim>with tests matching</Color>
</HorizontallyPadded>
<Text>&quot;{config.testNamePattern}&quot;</Text>
</>
);
}

Expand Down

0 comments on commit 2299ec7

Please sign in to comment.