Merge branch '16672-live-container-logs'. Closes #16672
[arvados.git] / src / services / common-service / common-service.test.ts
index 6754710534ca247a7048b914d8e717671e8b1c12..bfb50948561ed6971cab9eae709fb0afa5182e6c 100644 (file)
@@ -3,7 +3,7 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import axios, { AxiosInstance } from "axios";
-import { ApiActions } from "~/services/api/api-actions";
+import { ApiActions } from "services/api/api-actions";
 import { CommonService } from "./common-service";
 
 const actions: ApiActions = {
@@ -12,12 +12,10 @@ const actions: ApiActions = {
 };
 
 describe("CommonService", () => {
-    let axiosInstance: AxiosInstance;
     let commonService: CommonService<any>;
 
     beforeEach(() => {
-        commonService = new CommonService<any>(axiosInstance, "resource", actions);
-        axiosInstance = axios.create();
+        commonService = new CommonService<any>({} as AxiosInstance, "resource", actions);
     });
 
     it("throws an exception when passing uuid as empty string to get()", () => {