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

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

All files » src/components/performance-forecast/ » info-link.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 49                                                           17× 17×       17×                  
var BS, MESSAGES, React;
 
React = require('react');
 
BS = require('react-bootstrap');
 
MESSAGES = {
  student: [
    React.createElement("p", {
      "key": 's1'
    }, "The performance forecast is an estimate of your understanding of a topic."), React.createElement("p", {
      "key": 's2'
    }, "It is personalized display based on your answers to reading questions,\nhomework problems, and previous practices.")
  ],
  teacher: [
    React.createElement("p", {
      "key": 's1'
    }, "The performance forecast is an estimate of each group\'s understanding of a topic."), React.createElement("p", {
      "key": 's2'
    }, "It is personalized display based on their answers to reading questions,\nhomework problems, and previous practices.")
  ],
  teacher_student: [
    React.createElement("p", {
      "key": 'st1'
    }, "The performance forecast is an estimate of each student\'s understanding of a topic."), React.createElement("p", {
      "key": 'st2'
    }, "It is personalized display based on their answers to reading questions,\nhomework problems, and previous practices.")
  ]
};
 
module.exports = React.createClass({
  displayName: 'PerformanceForecastInfoLink',
  type: React.PropTypes.oneOf(['student', 'teacher', 'teacher_student']).isRequired,
  render: function() {
    var tooltip;
    tooltip = React.createElement(BS.Tooltip, {
      "className": 'info-link-tooltip',
      "html": 'true'
    }, MESSAGES[this.props.type]);
    return React.createElement(BS.OverlayTrigger, {
      "placement": 'right',
      "overlay": tooltip
    }, React.createElement("span", {
      "className": 'info-link'
    }));
  }
});