Skip to content

Commit

Permalink
refactor(useReactRedux): ent-4669 expand useSelectorsResponse (RedHat…
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Apr 5, 2022
1 parent 985c9c9 commit 2d442e0
Show file tree
Hide file tree
Showing 5 changed files with 1,566 additions and 178 deletions.
3 changes: 3 additions & 0 deletions src/components/inventoryCard/__tests__/inventoryCard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ describe('InventoryCard Component', () => {
useProductInventoryQuery: () => ({
[RHSM_API_QUERY_TYPES.LIMIT]: 10,
[RHSM_API_QUERY_TYPES.OFFSET]: 0
}),
useGetInventory: () => ({
pending: true
})
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ describe('GuestsList Component', () => {
it('should render a basic component', async () => {
const props = {
id: 'lorem',
numberOfGuests: 0
numberOfGuests: 0,
useGetGuestsInventory: () => ({ pending: true })
};

const component = await shallowHookComponent(<InventoryGuests {...props} />);
Expand Down
Loading

0 comments on commit 2d442e0

Please sign in to comment.