X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6a66e260c343d4943a68e5ca5ce205e83ba039c6..0c04dddf8855474ea629a6b55be38f15fbc4ac4c:/src/services/common-service/common-service.test.ts diff --git a/src/services/common-service/common-service.test.ts b/src/services/common-service/common-service.test.ts index 67547105..14a15476 100644 --- a/src/services/common-service/common-service.test.ts +++ b/src/services/common-service/common-service.test.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import axios, { AxiosInstance } from "axios"; +import axios from "axios"; import { ApiActions } from "~/services/api/api-actions"; import { CommonService } from "./common-service"; @@ -12,12 +12,10 @@ const actions: ApiActions = { }; describe("CommonService", () => { - let axiosInstance: AxiosInstance; let commonService: CommonService; beforeEach(() => { - commonService = new CommonService(axiosInstance, "resource", actions); - axiosInstance = axios.create(); + commonService = new CommonService(axios.create(), "resource", actions); }); it("throws an exception when passing uuid as empty string to get()", () => {