[ARVADOS-WORKBENCH2] updated: 2.1.0-212-g0c04dddf

Git user git at public.arvados.org
Mon Feb 22 20:18:04 UTC 2021


Summary of changes:
 src/services/common-service/common-service.test.ts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

       via  0c04dddf8855474ea629a6b55be38f15fbc4ac4c (commit)
      from  6a66e260c343d4943a68e5ca5ce205e83ba039c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0c04dddf8855474ea629a6b55be38f15fbc4ac4c
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Mon Feb 22 17:17:42 2021 -0300

    17319: Unit test code cleanup.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

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<any>;
 
     beforeEach(() => {
-        commonService = new CommonService<any>(axiosInstance, "resource", actions);
-        axiosInstance = axios.create();
+        commonService = new CommonService<any>(axios.create(), "resource", actions);
     });
 
     it("throws an exception when passing uuid as empty string to get()", () => {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list