Browse Source

fixed tsc errors

pull/649/head
Dan Ditomaso 1 year ago
parent
commit
9259e6d5fc
  1. 1
      src/components/Form/FormSelect.tsx
  2. 4
      src/components/PageComponents/Messages/TraceRoute.test.tsx
  3. 1
      src/index.css

1
src/components/Form/FormSelect.tsx

@ -44,6 +44,7 @@ export function SelectInput<T extends FieldValues>({
} = useController({ } = useController({
name: field.name, name: field.name,
control, control,
defaultValue: field.properties.defaultValue,
}); });
const { enumValue, formatEnumName, defaultValue, ...remainingProperties } = const { enumValue, formatEnumName, defaultValue, ...remainingProperties } =

4
src/components/PageComponents/Messages/TraceRoute.test.tsx

@ -70,7 +70,7 @@ describe("TraceRoute", () => {
getNode: (nodeNum: number): Protobuf.Mesh.NodeInfo | undefined => { getNode: (nodeNum: number): Protobuf.Mesh.NodeInfo | undefined => {
return mockNodes.get(nodeNum); return mockNodes.get(nodeNum);
}, },
}); } as any);
}); });
it("renders the route to destination with SNR values", () => { it("renders the route to destination with SNR values", () => {
@ -106,8 +106,10 @@ describe("TraceRoute", () => {
/>, />,
); );
// Check for the translated title
expect(screen.getByText("Route back:")).toBeInTheDocument(); expect(screen.getByText("Route back:")).toBeInTheDocument();
// With route back, both names appear twice
expect(screen.getAllByText("Source Node")).toHaveLength(2); expect(screen.getAllByText("Source Node")).toHaveLength(2);
expect(screen.getAllByText("Destination Node")).toHaveLength(2); expect(screen.getAllByText("Destination Node")).toHaveLength(2);

1
src/index.css

@ -93,6 +93,7 @@ body {
} }
@layer base { @layer base {
*, *,
::after, ::after,
::before, ::before,

Loading…
Cancel
Save