Skip to content

Commit 8db3952

Browse files
committed
chore: minor changes on format and extra comments
1 parent 637977c commit 8db3952

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

src/collections/infra/repositories/CollectionsRepository.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import { transformCollectionFeaturedItemsPayloadToCollectionFeaturedItems } from
2222
import { CollectionFeaturedItemsDTO } from '../../domain/dtos/CollectionFeaturedItemsDTO'
2323
import { ApiConstants } from '../../../core/infra/repositories/ApiConstants'
2424

25-
// TODO:ME - Create Delete All Featured Items use case
26-
2725
export interface NewCollectionRequestPayload {
2826
alias: string
2927
name: string

test/testHelpers/collections/collectionFeaturedItemsHelper.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export async function createCollectionFeaturedItemViaApi(
4444
}
4545
})
4646
.then((response) => {
47-
// console.log({ singleFeatItemCreated: JSON.stringify(response.data.data) })
4847
return response.data.data
4948
})
5049
} catch (error) {
@@ -61,9 +60,6 @@ export async function deleteCollectionFeaturedItemViaApi(featuredItemId: number)
6160
headers: { 'Content-Type': 'application/json', 'X-Dataverse-Key': process.env.TEST_API_KEY }
6261
}
6362
)
64-
// .then((resp) => {
65-
// console.log({ deletedResp: JSON.stringify(resp.data) })
66-
// })
6763
} catch (error) {
6864
throw new Error(`Error while deleting collection featured item with id ${featuredItemId}`)
6965
}
@@ -77,9 +73,6 @@ export async function deleteCollectionFeaturedItemsViaApi(collectionAlias: strin
7773
headers: { 'Content-Type': 'application/json', 'X-Dataverse-Key': process.env.TEST_API_KEY }
7874
}
7975
)
80-
// .then((resp) => {
81-
// console.log({ deletedAllResp: JSON.stringify(resp.data) })
82-
// })
8376
} catch (error) {
8477
console.log(error)
8578
throw new Error(`Error while deleting all featured items from collection: ${collectionAlias}`)

test/unit/collections/DeleteCollectionFeaturedItems.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ describe('execute', () => {
66
test('should return undefined on repository success', async () => {
77
const collectionRepositoryStub: ICollectionsRepository = {} as ICollectionsRepository
88
collectionRepositoryStub.deleteCollectionFeaturedItems = jest.fn().mockResolvedValue(undefined)
9-
109
const testDeleteCollectionFeaturedItems = new DeleteCollectionFeaturedItems(
1110
collectionRepositoryStub
1211
)

test/unit/collections/UpdateCollectionFeaturedItems.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ describe('execute', () => {
1616
collectionRepositoryStub.updateCollectionFeaturedItems = jest
1717
.fn()
1818
.mockResolvedValue(testFeaturedItems)
19-
2019
const testGetCollectionFeaturedItems = new UpdateCollectionFeaturedItems(
2120
collectionRepositoryStub
2221
)

0 commit comments

Comments
 (0)