Code coverage report for src/components/performance-forecast/section.cjsx

Statements: 100% (12 / 12)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (12 / 12)      Ignored: none     

All files » src/components/performance-forecast/ » section.cjsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48                                     255× 255× 255×                                    
var BS, ChapterSectionMixin, ChapterSectionType, ProgressBar, React, Router, Statistics;
 
React = require('react');
 
BS = require('react-bootstrap');
 
Router = require('react-router');
 
ChapterSectionMixin = require('openstax-react-components').ChapterSectionMixin;
 
ChapterSectionType = require('./chapter-section-type');
 
ProgressBar = require('./progress-bar');
 
Statistics = require('./statistics');
 
module.exports = React.createClass({
  displayName: 'PerformanceForecastSection',
  propTypes: {
    courseId: React.PropTypes.string.isRequired,
    roleId: React.PropTypes.string,
    section: ChapterSectionType.isRequired,
    onPractice: React.PropTypes.func,
    sampleSizeThreshold: React.PropTypes.number.isRequired
  },
  mixins: [ChapterSectionMixin],
  render: function() {
    var courseId, ref, section;
    ref = this.props, courseId = ref.courseId, section = ref.section;
    return React.createElement("div", {
      "className": 'section'
    }, React.createElement("div", {
      "className": 'heading'
    }, React.createElement("span", {
      "className": 'number'
    }, this.sectionFormat(section.chapter_section)), React.createElement("span", {
      "className": 'title',
      "title": section.title
    }, section.title)), React.createElement(ProgressBar, React.__spread({}, this.props)), React.createElement(Statistics, {
      "courseId": this.props.courseId,
      "roleId": this.props.roleId,
      "section": section,
      "displaying": "section"
    }));
  }
});