Code coverage report for src/components/task-plan/chapter-section.cjsx

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (9 / 9)      Ignored: none     

All files » src/components/task-plan/ » chapter-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                   47×           172× 172× 172×              
var ChapterSectionMixin, React, _;
 
React = require('react');
 
ChapterSectionMixin = require('openstax-react-components').ChapterSectionMixin;
 
_ = require('underscore');
 
module.exports = React.createClass({
  displayName: 'ChapterSection',
  propTypes: {
    section: React.PropTypes.oneOfType([React.PropTypes.array, React.PropTypes.string]).isRequired
  },
  componentWillMount: function() {
    return this.setState({
      skipZeros: false
    });
  },
  mixins: [ChapterSectionMixin],
  render: function() {
    var section;
    section = this.props.section;
    return React.createElement("span", {
      "className": "chapter-section",
      "data-chapter-section": this.sectionFormat(section)
    }, this.sectionFormat(section));
  }
});