Courseware and courseHome both provide tabs to the mfe. This PR unifies the calls so that tab descriptions are only fetched from courseHome metadata Remove jest-chain dependencies to make test errors more usable.
21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
/* A basic course metadata factory, to be specialized in courseware and course-home., */
|
|
|
|
import { Factory } from 'rosie'; // eslint-disable-line import/no-extraneous-dependencies
|
|
|
|
import './tab.factory';
|
|
|
|
export default new Factory()
|
|
.option('host')
|
|
.attrs({
|
|
id: 'course-v1:edX+DemoX+Demo_Course',
|
|
is_staff: false,
|
|
original_user_is_staff: false,
|
|
number: 'DemoX',
|
|
org: 'edX',
|
|
verified_mode: {
|
|
upgrade_url: 'test',
|
|
price: 10,
|
|
currency_symbol: '$',
|
|
},
|
|
});
|