Browse Source

fixed tsc errors

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

1
src/components/Form/FormSelect.tsx

@ -43,6 +43,7 @@ export function SelectInput<T extends FieldValues>({
} = useController({
name: field.name,
control,
defaultValue: field.properties.defaultValue,
});
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 => {
return mockNodes.get(nodeNum);
},
});
} as any);
});
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();
// With route back, both names appear twice
expect(screen.getAllByText("Source Node")).toHaveLength(2);
expect(screen.getAllByText("Destination Node")).toHaveLength(2);

3
src/index.css

@ -93,6 +93,7 @@ body {
}
@layer base {
*,
::after,
::before,
@ -138,4 +139,4 @@ img {
.animate-spin-slow {
animation: spin-slower 2s linear infinite;
}
}
Loading…
Cancel
Save