1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { initialDataExplorer } from '../data-explorer/data-explorer-reducer'
6 import { getParams } from './group-details-panel-members-middleware-service'
8 describe('group-details-panel-members-middleware', () => {
9 describe('getParams', () => {
10 it('should paginate', () => {
12 const dataExplorer = initialDataExplorer;
13 let params = getParams(dataExplorer, 'uuid');
16 expect(params.offset).toBe(0);
17 expect(params.limit).toBe(50);
20 dataExplorer.page = 1;
21 params = getParams(dataExplorer, 'uuid');
24 expect(params.offset).toBe(50);
25 expect(params.limit).toBe(50);