Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Dec 11, 2023
1 parent b2c5cff commit 0121d19
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/modules/marketplaces/tests/marketplaces.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1039,8 +1039,23 @@ describe('Marketplaces Service', () => {
const expected = ['disabledAddress'];
cacheService.getAllMarketplaces = jest.fn().mockReturnValueOnce(
new CollectionType({
items: inputMarketplaces,
count: inputCount,
items: [
new MarketplaceEntity({
address: 'address2',
name: 'name2',
key: 'common',
type: MarketplaceTypeEnum.Internal,
state: MarketplaceState.Enable,
}),
new MarketplaceEntity({
address: 'disabledAddress',
name: 'name',
key: 'test',
type: MarketplaceTypeEnum.External,
state: MarketplaceState.Disable,
}),
],
count: 2,
}),
);

Expand Down

0 comments on commit 0121d19

Please sign in to comment.