diff --git a/tests/e2e-integration/integration/collection/CollectionJSDataverseRepository.spec.ts b/tests/e2e-integration/integration/collection/CollectionJSDataverseRepository.spec.ts index 67515343c..0ca4b4e34 100644 --- a/tests/e2e-integration/integration/collection/CollectionJSDataverseRepository.spec.ts +++ b/tests/e2e-integration/integration/collection/CollectionJSDataverseRepository.spec.ts @@ -7,8 +7,10 @@ import { UpwardHierarchyNode } from '../../../../src/shared/hierarchy/domain/models/UpwardHierarchyNode' import { Collection } from '../../../../src/collection/domain/models/Collection' +import { CollectionType } from '@/collection/domain/models/CollectionType' const collectionRepository = new CollectionJSDataverseRepository() + const collectionExpected: Collection = { id: 'new-collection', name: 'Scientific Research', @@ -24,8 +26,22 @@ const collectionExpected: Collection = { undefined, new UpwardHierarchyNode('Root', DvObjectType.COLLECTION, 'root', undefined, undefined, true) ), - inputLevels: undefined + inputLevels: undefined, + type: CollectionType.LABORATORY, + contacts: [ + { + email: 'pi@example.edu', + displayOrder: 0 + }, + { + email: 'student@example.edu', + displayOrder: 1 + } + ], + isMetadataBlockRoot: false, + isFacetRoot: false } + describe('Collection JSDataverse Repository', () => { before(() => TestsUtils.setup()) beforeEach(() => { @@ -40,6 +56,7 @@ describe('Collection JSDataverse Repository', () => { throw new Error('Collection not found') } + console.log('collection', collection) expect(collection).to.deep.equal(collectionExpected) }) })