{"size": 324, "ext": "js", "max_stars_repo_path": "src/app/reducers/site-nav.spec.js", "max_stars_repo_name": "tuxsudo/react-starter", "max_stars_repo_stars_event_min_datetime": "2016-05-04T16:16:27.000Z", "max_stars_repo_stars_event_max_datetime": "2017-10-06T02:48:53.000Z", "max_issues_repo_path": "src/app/reducers/site-nav.spec.js", "max_issues_repo_name": "tuxsudo/react-starter", "max_issues_repo_issues_event_min_datetime": "2016-02-20T17:36:06.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-04T05:20:46.000Z", "max_forks_repo_path": "src/app/reducers/site-nav.spec.js", "max_forks_repo_name": "tuxsudo/react-starter", "max_forks_repo_forks_event_min_datetime": "2016-02-23T20:49:22.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-22T15:41:54.000Z"}
{"max_stars_count": 15, "max_issues_count": 67, "max_forks_count": 15, "avg_line_length": 32.4, "max_line_length": 87, "alphanum_fraction": 0.6234567901}
import siteNanReducer, { RECEIVE_SITE_NAVIGATION } from './site-nav.js';

test('Reducers setNav test', () => {
    expect(siteNanReducer(undefined, {type: undefined})).toEqual([]);

    expect(
        siteNanReducer([], {type: RECEIVE_SITE_NAVIGATION, nav: ['foo', 'bar', 'baz']})
    ).toEqual(['foo', 'bar', 'baz']);
});
