hunk.code_window: }
   func createLocalClient(endpoint *portainer.Endpoint) (*client.Client, error) {
   	return client.NewClientWithOpts(
   		client.WithHost(endpoint.URL),
   		client.WithVersion(dockerClientVersion),
   	)
   }
   func CreateClientFromEnv() (*client.Client, error) {
   	return client.NewClientWithOpts(
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit: 		client.WithAPIVersionNegotiation(),
  
hunk.file_path: api/docker/client/client.go
hunk.type: replace
file: import KubernetesStackHelper from './stackHelper';
  
  describe('stacksFromApplications', () => {
    const { stacksFromApplications } = KubernetesStackHelper;
    test('should return an empty array when passed an empty array', () => {
      expect(stacksFromApplications([])).toHaveLength(0);
    });
  
    test('should return an empty array when passed a list of applications without stacks', () => {
      expect(stacksFromApplications([{ StackName: '' }, { StackName: '' }, { StackName: '' }, { StackName: '' }])).toHaveLength(0);
    });
  });
  