20029: Actually remove unneeded test this time
[arvados-workbench2.git] / src / services / collection-service / collection-service.test.ts
index 88e86172dbd3352eee217729c009eaf6d4032f87..304cbfd3110d056fa57f12cd0c455b1d53ffee6c 100644 (file)
@@ -7,7 +7,7 @@ import MockAdapter from 'axios-mock-adapter';
 import { snakeCase } from 'lodash';
 import { CollectionResource, defaultCollectionSelectedFields } from 'models/collection';
 import { AuthService } from '../auth-service/auth-service';
-import { CollectionService, emptyCollectionUuid } from './collection-service';
+import { CollectionService, emptyCollectionPdh } from './collection-service';
 
 describe('collection-service', () => {
     let collectionService: CollectionService;
@@ -173,29 +173,6 @@ describe('collection-service', () => {
             );
         });
 
-        it('should remove files with uuid prefix', async () => {
-            // given
-            serverApi.put = jest.fn(() => Promise.resolve({ data: {} }));
-            const filePaths: string[] = ['/root/1'];
-            const collectionUUID = 'zzzzz-tpzed-5o5tg0l9a57gxxx';
-
-            // when
-            await collectionService.deleteFiles(collectionUUID, filePaths);
-
-            // then
-            expect(serverApi.put).toHaveBeenCalledTimes(1);
-            expect(serverApi.put).toHaveBeenCalledWith(
-                `/collections/${collectionUUID}`, {
-                    collection: {
-                        preserve_version: true
-                    },
-                    replace_files: {
-                        '/root/1': '',
-                    },
-                }
-            );
-        });
-
         it('should batch remove files', async () => {
             serverApi.put = jest.fn(() => Promise.resolve({ data: {} }));
             // given
@@ -467,7 +444,7 @@ describe('collection-service', () => {
                             preserve_version: true
                         },
                         replace_files: {
-                            ["/" + directoryNames[i].out]: emptyCollectionUuid,
+                            ["/" + directoryNames[i].out]: emptyCollectionPdh,
                         },
                     }
                 );