{"size": 985, "ext": "js", "max_stars_repo_path": "app/actions/__tests__/interfaceEditorSelectedElementPath-test.js", "max_stars_repo_name": "danscan/fractal", "max_stars_repo_stars_event_min_datetime": "2016-10-12T14:28:16.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-08T08:20:03.000Z", "max_issues_repo_path": "app/actions/__tests__/interfaceEditorSelectedElementPath-test.js", "max_issues_repo_name": "danscan/fractal", "max_issues_repo_issues_event_min_datetime": "2016-10-17T07:30:31.000Z", "max_issues_repo_issues_event_max_datetime": "2016-10-18T03:33:34.000Z", "max_forks_repo_path": "app/actions/__tests__/interfaceEditorSelectedElementPath-test.js", "max_forks_repo_name": "danscan/fractal", "max_forks_repo_forks_event_min_datetime": "2016-10-13T04:52:29.000Z", "max_forks_repo_forks_event_max_datetime": "2016-10-17T07:06:32.000Z"}
{"max_stars_count": 17, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 30.78125, "max_line_length": 100, "alphanum_fraction": 0.6903553299}
/* global it, describe, expect, jest */
jest.unmock('../interfaceEditorSelectedElementPath');

import {
  SET_INTERFACE_EDITOR_SELECTED_ELEMENT_PATH,
  setInterfaceEditorSelectedElementPath,
} from '../interfaceEditorSelectedElementPath';

describe('interfaceEditorSelectedElementPath actions file', () => {
  describe('action type(s)', () => {
    it('should export an action type for setting interface editor selected element path', () => {
      expect(
        SET_INTERFACE_EDITOR_SELECTED_ELEMENT_PATH
      ).toBeDefined();
    });
  });

  describe('action creator(s)', () => {
    it('should export an action creator for setting interface editor selected element path', () => {
      const selectedElementPath = {};
      const expectedAction = {
        type: SET_INTERFACE_EDITOR_SELECTED_ELEMENT_PATH,
        selectedElementPath,
      };

      expect(
        setInterfaceEditorSelectedElementPath(selectedElementPath)
      ).toEqual(expectedAction);
    });
  });
});
