Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ describe('EmptySlowLog', () => {
<EmptySlowLog durationUnit={DurationUnits.milliSeconds} slowlogLogSlowerThan={100} />
)).toBeTruthy()
})
it('should contain msec instead of ms', () => {
const { container } = render(
<EmptySlowLog durationUnit={DurationUnits.milliSeconds} slowlogLogSlowerThan={10000000} />
)

expect(container).toHaveTextContent('10 000 msec')
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const EmptySlowLog = (props: Props) => {
</EuiTitle>
<EuiText color="subdued">
Either no commands exceeding&nbsp;
{numberWithSpaces(convertNumberByUnits(slowlogLogSlowerThan, durationUnit))} {durationUnit}
{numberWithSpaces(convertNumberByUnits(slowlogLogSlowerThan, durationUnit))}
&nbsp;
{durationUnit === DurationUnits.milliSeconds ? DurationUnits.mSeconds : DurationUnits.microSeconds}
&nbsp;were found or Slow Log is disabled on the server.
</EuiText>
</div>
Expand Down