Skip to content

Commit

Permalink
few more test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Divs-B committed Jan 27, 2025
1 parent 2ec193e commit 6dbb4b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,6 @@ export const finalStateWhenAddNewCollection = {
toDate: '2024-08-13T00:00:00Z',
},
items: [],
targetedRegions: [],
excludedRegions: [],
suppressImages: undefined,
},
'bf3428ed-4ee8-4321-8099-6590d0b51fd6': {
id: 'bf3428ed-4ee8-4321-8099-6590d0b51fd6',
Expand All @@ -818,9 +815,6 @@ export const finalStateWhenAddNewCollection = {
updatedBy: 'Divya Bhatt ',
updatedEmail: '[email protected]',
items: [],
targetedRegions: [],
excludedRegions: [],
suppressImages: undefined,
},
},
},
Expand Down Expand Up @@ -1479,6 +1473,8 @@ export const finalStateWhenAddNewCollection = {
platform: undefined,
targetedTerritory: undefined,
type: undefined,
targetedRegions: [], //add here to pass the test?
excludedRegions: [],
},
'bf3428ed-4ee8-4321-8099-6590d0b51fd6': {
displayName: 'New collection',
Expand Down
4 changes: 3 additions & 1 deletion fronts-client/src/fixtures/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const collection = {
id: 'exampleCollection',
displayName: 'Example Collection',
type: 'type',
targetedRegions: [],
targetedRegions: [], //mandatory, should be added here to compile
excludedRegions: [],
};

Expand Down Expand Up @@ -671,6 +671,8 @@ const stateWithCollection: any = {
draft: [],
previously: undefined,
type: 'type',
targetedRegions: [], //add here to pass the test
excludedRegions: [],
},
exampleCollectionTwo: {
id: 'exampleCollection',
Expand Down
2 changes: 2 additions & 0 deletions fronts-client/src/util/__tests__/storeMiddleware.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ describe('Store middleware', () => {
draft: [],
previously: undefined,
type: 'type',
targetedRegions: [], //add here to pass the test for persistCollectionOnEdit
excludedRegions: [],
}),
);
});
Expand Down

0 comments on commit 6dbb4b1

Please sign in to comment.