{"size": 413, "ext": "js", "max_stars_repo_path": "src/__tests__/reducers/form-visible-reducer.test.js", "max_stars_repo_name": "Lo-GR/brewery-tracker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/__tests__/reducers/form-visible-reducer.test.js", "max_issues_repo_name": "Lo-GR/brewery-tracker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/__tests__/reducers/form-visible-reducer.test.js", "max_forks_repo_name": "Lo-GR/brewery-tracker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 37.5454545455, "max_line_length": 69, "alphanum_fraction": 0.6779661017}
import formVisibleReducer from "../../reducers/form-visible-reducer";
import * as a from "../../actions/index";

describe('formVisibleReducer', ()=>{
  test('should return default state if no action', ()=>{
    expect(formVisibleReducer(false, { type: null})).toEqual(false);
  })
  test('should toggle form visibility state to true', ()=>{
    expect(formVisibleReducer(false, a.toggle())).toEqual(true);
  })
})