Skip to content

Commit af1dd72

Browse files
committed
remove commented code
1 parent d17df32 commit af1dd72

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

test/integration/collections/CollectionsRepository.test.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,22 +1342,15 @@ describe('CollectionsRepository', () => {
13421342
)
13431343
process.env.TEST_API_KEY = myDataUserApiToken
13441344
const collectionDTO = createCollectionDTO(testSubCollectionAlias)
1345+
// Calling the createCollection use case here
1346+
// because createCollectionViaApi does not create the collection in a way
1347+
// that is recognized by then MyData endpoint
13451348
await createCollection.execute(collectionDTO, testCollectionAlias).catch((error) => {
13461349
console.log(error.message)
13471350
throw new Error(
13481351
`Tests beforeAll(): Error while creating subcollection ${testSubCollectionAlias}`
13491352
)
13501353
})
1351-
/*
1352-
This does not work, it doesn't return the collection - even though calling the use case does work.
1353-
await createCollectionViaApi(testSubCollectionAlias).catch((error) => {
1354-
console.log(error.message)
1355-
throw new Error(
1356-
`Tests beforeAll(): Error while creating subcollection ${testSubCollectionAlias}`
1357-
)
1358-
})
1359-
1360-
*/
13611354
try {
13621355
testDatasetIds = await createDataset.execute(
13631356
TestConstants.TEST_NEW_DATASET_DTO,

0 commit comments

Comments
 (0)