Bw/recommendations panel (#63)

Co-authored-by: Shafqat Farhan <shafqat.farhan@arbisoft.com>
This commit is contained in:
Ben Warzeski
2022-11-04 15:01:56 -04:00
committed by GitHub
parent b8245d6631
commit dde8d45df3
62 changed files with 1149 additions and 425 deletions

View File

@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`WidgetSidebar snapshots default 1`] = `
<div
className="widget-sidebar"
>
<div
className="d-flex"
>
<RecommendationsPanel />
</div>
</div>
`;

View File

@@ -0,0 +1,13 @@
import React from 'react';
import RecommendationsPanel from 'widgets/RecommendationsPanel';
export const WidgetSidebar = () => (
<div className="widget-sidebar">
<div className="d-flex">
<RecommendationsPanel />
</div>
</div>
);
export default WidgetSidebar;

View File

@@ -0,0 +1,14 @@
import { shallow } from 'enzyme';
import WidgetSidebar from '.';
jest.mock('widgets/LookingForChallengeWidget', () => 'LookingForChallengeWidget');
describe('WidgetSidebar', () => {
describe('snapshots', () => {
test('default', () => {
const wrapper = shallow(<WidgetSidebar />);
expect(wrapper).toMatchSnapshot();
});
});
});

View File

@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`WidgetSidebar snapshots default 1`] = `
<div
className="widget-sidebar px-2"
>
<div
className="d-flex"
>
<RecommendationsPanel />
</div>
</div>
`;

View File

@@ -0,0 +1,13 @@
import React from 'react';
import RecommendationsPanel from 'widgets/RecommendationsPanel';
export const WidgetSidebar = () => (
<div className="widget-sidebar px-2">
<div className="d-flex">
<RecommendationsPanel />
</div>
</div>
);
export default WidgetSidebar;

View File

@@ -0,0 +1,14 @@
import { shallow } from 'enzyme';
import WidgetSidebar from '.';
jest.mock('widgets/LookingForChallengeWidget', () => 'LookingForChallengeWidget');
describe('WidgetSidebar', () => {
describe('snapshots', () => {
test('default', () => {
const wrapper = shallow(<WidgetSidebar />);
expect(wrapper).toMatchSnapshot();
});
});
});