1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import axios from "axios";
6 import MockAdapter from "axios-mock-adapter";
7 import { GroupsService } from "./groups-service";
9 describe("GroupsService", () => {
11 const axiosMock = new MockAdapter(axios);
17 it("#contents", async () => {
19 .onGet("/groups/1/contents")
30 const groupsService = new GroupsService(axios);
31 const resource = await groupsService.contents("1", { limit: 10, offset: 1 });
32 expect(resource).toEqual({