<commit_before><commit_msg>adding a test for PrintStyle component<commit_after>var Radium = require('index.js');
var React = require('react/addons');

var {PrintStyle} = Radium;
var TestUtils = React.addons.TestUtils;


describe('Radium blackbox tests', () => {
  it('applies print styles through the PrintStyle component', () => {
    Radium(React.createClass({
      displayName: 'TestComponent',

      statics: {
        printStyles: {
          foo: {color: 'blue'},
          bar: {background: 'red'}
        }
      },

      render () {
        return (
          <div />
        );
      }
    }));

    var output = TestUtils.renderIntoDocument(<PrintStyle />);

    var style = React.findDOMNode(
      TestUtils.findRenderedDOMComponentWithTag(output, 'style')
    );

    expect(style.innerText).to.deep.equal(
      '@media print{.Radium-TestComponent-foo{color: blue !important;}.Radium-TestComponent-bar{background: red !important;}}' // eslint-disable-line max-len
    );
  });

});
{'fraction_non_alphanumeric': 0.14814814814814814, 'fraction_numerical': 0.0, 'mean_word_length': 2.8910505836575875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5302822', 'n_tokens_mistral': 305, 'n_tokens_neox': 298, 'n_words': 58}