20029: Rename empty collection pdh constant & remove unnecessary unit test
[arvados-workbench2.git] / src / services / collection-service / collection-service.ts
index a95fb47be0f8a270b008974e3d90fcce95c3f490..74cf75956f7cec87a36abb8f0fdcaee5b7e0883e 100644 (file)
@@ -15,7 +15,7 @@ import { CommonService } from "services/common-service/common-service";
 
 export type UploadProgress = (fileId: number, loaded: number, total: number, currentTime: number) => void;
 
-export const emptyCollectionUuid = 'd41d8cd98f00b204e9800998ecf8427e+0';
+export const emptyCollectionPdh = 'd41d8cd98f00b204e9800998ecf8427e+0';
 
 export class CollectionService extends TrashableResourceService<CollectionResource> {
     constructor(serverApi: AxiosInstance, private webdavClient: WebDAV, private authService: AuthService, actions: ApiActions) {
@@ -188,7 +188,7 @@ export class CollectionService extends TrashableResourceService<CollectionResour
     }
 
     createDirectory(collectionUuid: string, path: string, showErrors?: boolean) {
-        const fileMap = {[this.combineFilePath([path])]: emptyCollectionUuid};
+        const fileMap = {[this.combineFilePath([path])]: emptyCollectionPdh};
 
         return this.replaceFiles(collectionUuid, fileMap, showErrors);
     }