20029: Actually remove unneeded test this time 20029-collection-batch-file-operations
authorStephen Smith <stephen@curii.com>
Fri, 17 Mar 2023 14:30:25 +0000 (10:30 -0400)
committerStephen Smith <stephen@curii.com>
Fri, 17 Mar 2023 14:30:25 +0000 (10:30 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/services/collection-service/collection-service.test.ts

index 544d6d0604c12183e41a0a32d052c0093227d9cc..304cbfd3110d056fa57f12cd0c455b1d53ffee6c 100644 (file)
@@ -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