Code coverage report for src/components/course-data-mixin.cjsx

Statements: 100% (7 / 7)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (7 / 7)      Ignored: none     

All files » src/components/ » course-data-mixin.cjsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18       113× 113× 16×   113×              
var CourseStore;
 
CourseStore = require('../flux/course').CourseStore;
 
module.exports = {
  getCourseDataProps: function(courseId) {
    var dataProps;
    if (courseId == null) {
      courseId = this.context.router.getCurrentParams().courseId;
    }
    return dataProps = {
      'data-title': CourseStore.getName(courseId),
      'data-appearance': CourseStore.getAppearanceCode(courseId)
    };
  }
};