Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useCategoryTile: jest.fn()
};
});
jest.mock('@magento/peregrine/lib/talons/CategoryList/useCategoryList', () => {
return {
useCategoryList: jest.fn()
};
});
useCategoryTile.mockReturnValue({
image: {},
item: {}
});
useCategoryList.mockReturnValue({
data: {
category: {
children: []
}
},
loading: false,
error: false
});
test('renders a header', () => {
const title = 'foo';
const { root } = createTestInstance();
const list = root.findByProps({ className: 'root' });
const header = list.findByProps({ className: 'header' });