Code coverage report for src/components/no-periods.cjsx

Statements: 58.33% (7 / 12)      Branches: 0% (0 / 2)      Functions: 0% (0 / 1)      Lines: 58.33% (7 / 12)      Ignored: none     

All files » src/components/ » no-periods.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                                              
var BS, NO_PERIODS_TEXT, NoPeriods, React, _;
 
_ = require('underscore');
 
React = require('react');
 
BS = require('react-bootstrap');
 
NO_PERIODS_TEXT = 'Please add at least one period to the course.';
 
NoPeriods = React.createClass({displayName: "NoPeriods",
  propTypes: {
    noPanel: React.PropTypes.bool
  },
  render: function() {
    var text;
    text = React.createElement("span", {
      "className": '-no-periods-text'
    }, NO_PERIODS_TEXT);
    if (this.props.noPanel) {
      return text;
    } else {
      return React.createElement(BS.Panel, null, text);
    }
  }
});
 
module.exports = NoPeriods;