text: /*
   * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
   * or more contributor license agreements. Licensed under the Elastic License;
   * you may not use this file except in compliance with the Elastic License.
   */
  
  import { API_BASE_PATH } from './constants';
  
  export const registerHelpers = ({ supertest }) => {
    const loadNodes = () => supertest.get(`${API_BASE_PATH}/nodes/list`);
  
    const getNodeDetails = (nodeAttribute) => (
      supertest.get(`${API_BASE_PATH}/nodes/${nodeAttribute}/details`)
    );
  
    return {
      loadNodes,
      getNodeDetails,
    };
  };
  