Skip to content

Commit

Permalink
refactor(useReactRedux): ent-4669 expand useSelectorsResponse (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Jun 14, 2022
1 parent d01baa1 commit 19be673
Show file tree
Hide file tree
Showing 6 changed files with 1,579 additions and 191 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 19be673

Please sign in to comment.