21 lines
451 B
JavaScript
21 lines
451 B
JavaScript
import { shallow } from 'enzyme';
|
|
|
|
import LookingForChallengeWidget from '.';
|
|
|
|
jest.mock('data/redux', () => ({
|
|
hooks: {
|
|
usePlatformSettingsData: () => ({
|
|
courseSearchUrl: 'course-search-url',
|
|
}),
|
|
},
|
|
}));
|
|
|
|
describe('LookingForChallengeWidget', () => {
|
|
describe('snapshots', () => {
|
|
test('default', () => {
|
|
const wrapper = shallow(<LookingForChallengeWidget />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|