66} from '../../../src/core/infra/repositories/ApiConfig'
77import {
88 createCollectionModel ,
9- createCollectionPayload ,
10- transformedCollectionModel
9+ createCollectionPayload
1110} from '../../testHelpers/collections/collectionHelper'
1211import { TestConstants } from '../../testHelpers/TestConstants'
1312import { ReadError } from '../../../src'
@@ -46,7 +45,7 @@ describe('CollectionsRepository', () => {
4645 const actual = await sut . getCollection ( testCollectionModel . id )
4746
4847 expect ( axios . get ) . toHaveBeenCalledWith ( expectedApiEndpoint , expectedRequestConfigApiKey )
49- expect ( actual ) . toStrictEqual ( transformedCollectionModel )
48+ expect ( actual ) . toStrictEqual ( createCollectionModel ( ) )
5049 } )
5150
5251 test ( 'should return error on repository read error' , async ( ) => {
@@ -69,7 +68,7 @@ describe('CollectionsRepository', () => {
6968 const actual = await sut . getCollection ( testCollectionModel . alias )
7069
7170 expect ( axios . get ) . toHaveBeenCalledWith ( expectedApiEndpoint , expectedRequestConfigApiKey )
72- expect ( actual ) . toStrictEqual ( transformedCollectionModel )
71+ expect ( actual ) . toStrictEqual ( createCollectionModel ( ) )
7372 } )
7473
7574 test ( 'should return error on repository read error' , async ( ) => {
@@ -92,7 +91,7 @@ describe('CollectionsRepository', () => {
9291 const actual = await sut . getCollection ( )
9392
9493 expect ( axios . get ) . toHaveBeenCalledWith ( expectedApiEndpoint , expectedRequestConfigApiKey )
95- expect ( actual ) . toStrictEqual ( transformedCollectionModel )
94+ expect ( actual ) . toStrictEqual ( createCollectionModel ( ) )
9695 } )
9796
9897 test ( 'should return error on repository read error' , async ( ) => {
0 commit comments