From a1b026544d3b3e1b6c7b8925835cb57b121b240c Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Thu, 4 Dec 2025 11:52:31 -0800 Subject: [PATCH] fix unit tests and lint --- .../ThroughputInputAutoPilotV3Component.tsx | 2 +- .../ThroughputInputAutoPilotV3Component.test.tsx.snap | 8 ++++++++ .../NotificationConsole/NotificationConsoleComponent.tsx | 1 - .../NotificationConsoleComponent.test.tsx.snap | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx index 31e078d04..3d258fc56 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx @@ -653,7 +653,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component< } onChange={this.onThroughputChange} min={this.props.minimum} - onGetErrorMessage={(_) => { + onGetErrorMessage={() => { return {this.props.throughputError}; }} data-test="manual-throughput-input" diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/__snapshots__/ThroughputInputAutoPilotV3Component.test.tsx.snap b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/__snapshots__/ThroughputInputAutoPilotV3Component.test.tsx.snap index f4e300d91..7b144745e 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/__snapshots__/ThroughputInputAutoPilotV3Component.test.tsx.snap +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/__snapshots__/ThroughputInputAutoPilotV3Component.test.tsx.snap @@ -273,6 +273,7 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = ` /> {item.date} {item.message} - {console.log(item.message)} )); diff --git a/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap b/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap index 5d471f177..83009fd99 100644 --- a/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap +++ b/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap @@ -78,6 +78,7 @@ exports[`NotificationConsoleComponent renders the console 1`] = ` />