hunk.code_window: const mapStateToProps = (state: AppState) => ({
     isHelpModalOpen: getHelpModalOpen(state),
     user: getCurrentUser(state),
   });
   export default connect(mapStateToProps)(HelpModal);
hunk.labels: keep keep keep replace keep keep keep
hunk.file_path: app/client/src/components/designSystems/appsmith/help/HelpModal.tsx
hunk.type: replace
file: package com.appsmith.external.models;
  
  import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginError;
  import org.junit.Test;
  
  import static org.junit.Assert.assertNotNull;
  import static org.junit.Assert.assertTrue;
  
  public class DatasourceTestResultTest {
  
      @Test
      public void testNewDatasourceTestResult_NullInvalidArray() {
          DatasourceTestResult nullInvalidsResult = new DatasourceTestResult((String) null);
          assertNotNull(nullInvalidsResult);
          assertTrue(nullInvalidsResult.getInvalids().contains(AppsmithPluginError.PLUGIN_DATASOURCE_TEST_GENERIC_ERROR.getMessage()));
  
          nullInvalidsResult = new DatasourceTestResult(new String[]{null});
          assertNotNull(nullInvalidsResult);
          assertTrue(nullInvalidsResult.getInvalids().contains(AppsmithPluginError.PLUGIN_DATASOURCE_TEST_GENERIC_ERROR.getMessage()));
      }
  }