minor cleanup
parent
b3e2830cce
commit
ee3c9a081c
|
@ -176,8 +176,7 @@ describe("<FbosDetails/>", () => {
|
|||
|
||||
it("displays cpu usage", () => {
|
||||
const p = fakeProps();
|
||||
// tslint:disable-next-line:no-any
|
||||
(p.botInfoSettings as any).cpu_usage = 10;
|
||||
p.botInfoSettings.cpu_usage = 10;
|
||||
const wrapper = mount(<FbosDetails {...p} />);
|
||||
expect(wrapper.text().toLowerCase()).toContain("cpu usage: 10%");
|
||||
});
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import * as React from "react";
|
||||
|
||||
import { DocSlug } from "./doc_link";
|
||||
import { t } from "../i18next_wrapper";
|
||||
import { ToolTip } from "./tooltip";
|
||||
|
@ -16,7 +15,6 @@ export function WidgetHeader(props: WidgetHeaderProps) {
|
|||
{props.children}
|
||||
<h5>{t(props.title)}</h5>
|
||||
{props.helpText &&
|
||||
<ToolTip helpText={props.helpText} docPage={props.docPage} />
|
||||
}
|
||||
<ToolTip helpText={props.helpText} docPage={props.docPage} />}
|
||||
</div>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue