17782: Fixes almost all tests (4 left) mostly by fixing namespace-type imports.
[arvados-workbench2.git] / src / services / collection-service / collection-service.test.ts
index 19ac7490542d29be3dc72cb5ae3577396f0bae3f..061a45ec0111cfedb84405a699abe87017fbe404 100644 (file)
@@ -3,7 +3,7 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { AxiosInstance } from 'axios';
-import { WebDAV } from '~/common/webdav';
+import { WebDAV } from 'common/webdav';
 import { ApiActions } from '../api/api-actions';
 import { AuthService } from '../auth-service/auth-service';
 import { CollectionService } from './collection-service';
@@ -23,6 +23,7 @@ describe('collection-service', () => {
         authService = {} as AuthService;
         actions = {} as ApiActions;
         collectionService = new CollectionService(serverApi, webdavClient, authService, actions);
+        collectionService.update = jest.fn();
     });
 
     describe('deleteFiles', () => {