Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth committed Oct 8, 2019
1 parent b3e2830 commit ee3c9a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Expand Up @@ -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%");
});
Expand Down
4 changes: 1 addition & 3 deletions frontend/ui/widget_header.tsx
@@ -1,5 +1,4 @@
import * as React from "react";

import { DocSlug } from "./doc_link";
import { t } from "../i18next_wrapper";
import { ToolTip } from "./tooltip";
Expand All @@ -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>;
}

0 comments on commit ee3c9a0

Please sign in to comment.