Skip to content

Commit b100126

Browse files
committed
add test for allowedDatasetTypes field in getCollection
1 parent a8c5c92 commit b100126

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/integration/collections/CollectionsRepository.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ describe('CollectionsRepository', () => {
176176
expect(actualAfterDatasetDeletion.childCount).toBe(0)
177177
await deleteCollectionViaApi(parentCollectionAlias)
178178
})
179+
180+
test('should include allowedDatasetTypes field when retrieving a collection', async () => {
181+
const actual = await sut.getCollection(testCollectionAlias)
182+
expect(actual).toHaveProperty('allowedDatasetTypes')
183+
})
179184
})
180185

181186
describe('publishCollection', () => {

0 commit comments

Comments
 (0)