projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '14258-update-data-explorer-to-use-table-filters-tree' into 14258-update...
[arvados-workbench2.git]
/
src
/
services
/
collection-files-service
/
collection-manifest-mapper.test.ts
diff --git
a/src/services/collection-files-service/collection-manifest-mapper.test.ts
b/src/services/collection-files-service/collection-manifest-mapper.test.ts
index e12dc35ef95c2833abea943cce0cad1e95e70765..698a6bb7f4ba6f55a46a8a5a5d6e986eaff92747 100644
(file)
--- a/
src/services/collection-files-service/collection-manifest-mapper.test.ts
+++ b/
src/services/collection-files-service/collection-manifest-mapper.test.ts
@@
-4,8
+4,6
@@
import { parseKeepManifestText } from "./collection-manifest-parser";
import { mapManifestToFiles, mapManifestToDirectories, mapManifestToCollectionFilesTree, mapCollectionFilesTreeToManifest } from "./collection-manifest-mapper";
import { parseKeepManifestText } from "./collection-manifest-parser";
import { mapManifestToFiles, mapManifestToDirectories, mapManifestToCollectionFilesTree, mapCollectionFilesTreeToManifest } from "./collection-manifest-mapper";
-import { createTree, setNode, TreeNode } from "../../models/tree";
-import { CollectionFilesTree, CollectionDirectory, CollectionFile, CollectionFileType } from "../../models/collection-file";
test('mapManifestToFiles', () => {
const manifestText = `. 930625b054ce894ac40596c3f5a0d947+33 0:0:a 0:0:b 0:33:output.txt\n./c d41d8cd98f00b204e9800998ecf8427e+0 0:0:d`;
test('mapManifestToFiles', () => {
const manifestText = `. 930625b054ce894ac40596c3f5a0d947+33 0:0:a 0:0:b 0:33:output.txt\n./c d41d8cd98f00b204e9800998ecf8427e+0 0:0:d`;
@@
-16,25
+14,29
@@
test('mapManifestToFiles', () => {
id: '/a',
name: 'a',
size: 0,
id: '/a',
name: 'a',
size: 0,
- type: 'file'
+ type: 'file',
+ url: ''
}, {
path: '',
id: '/b',
name: 'b',
size: 0,
}, {
path: '',
id: '/b',
name: 'b',
size: 0,
- type: 'file'
+ type: 'file',
+ url: ''
}, {
path: '',
id: '/output.txt',
name: 'output.txt',
size: 33,
}, {
path: '',
id: '/output.txt',
name: 'output.txt',
size: 33,
- type: 'file'
+ type: 'file',
+ url: ''
}, {
path: '/c',
id: '/c/d',
name: 'd',
size: 0,
}, {
path: '/c',
id: '/c/d',
name: 'd',
size: 0,
- type: 'file'
+ type: 'file',
+ url: ''
},]);
});
},]);
});
@@
-46,17
+48,20
@@
test('mapManifestToDirectories', () => {
path: "",
id: '/c',
name: 'c',
path: "",
id: '/c',
name: 'c',
- type: 'directory'
+ type: 'directory',
+ url: ''
}, {
path: '/c',
id: '/c/user',
name: 'user',
}, {
path: '/c',
id: '/c/user',
name: 'user',
- type: 'directory'
+ type: 'directory',
+ url: ''
}, {
path: '/c/user',
id: '/c/user/results',
name: 'results',
}, {
path: '/c/user',
id: '/c/user/results',
name: 'results',
- type: 'directory'
+ type: 'directory',
+ url: ''
},]);
});
},]);
});