{"size": 602, "ext": "js", "max_stars_repo_path": "src/Controller/__tests__/buildReducerActions.js", "max_stars_repo_name": "momentechnologies/redest", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/Controller/__tests__/buildReducerActions.js", "max_issues_repo_name": "momentechnologies/redest", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/Controller/__tests__/buildReducerActions.js", "max_forks_repo_name": "momentechnologies/redest", "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": 22.2962962963, "max_line_length": 57, "alphanum_fraction": 0.4003322259}
import buildReducerActions from '../buildReducerActions';

describe('buildReducerActions', () => {
    it('should return correct object', () => {
        const response = {
            url: '/users',
            prefix: 'users',
            reducer: 'users',
        };

        expect(
            Object.keys(
                buildReducerActions({
                    reducer: 'test',
                })
            )
        ).toEqual([
            'getIfNeeded',
            'get',
            'create',
            'update',
            'remove',
            'invalidate',
        ]);
    });
});
