<commit_before>import reactElementToJSXString from 'react-element-to-jsx-string';

export default function (_chai, utils) {
  var Assertion = _chai.Assertion;

  Assertion.addMethod('equalJSX', function(expected){
    var obj = this._obj
    var actualString = reactElementToJSXString(obj);
    var expectedString = reactElementToJSXString(expected);

    this.assert(
      actualString === expectedString
      , "expected #{this} to be like #{exp}"
      , "expected #{this} not to be like #{exp}"<commit_msg>don't use ES6 modules<commit_after>var reactElementToJSXString = require('react-element-to-jsx-string');

module.exports = function (_chai, utils) {
  var Assertion = _chai.Assertion;

  Assertion.addMethod('equalJSX', function(expected){
    var obj = this._obj
    var actualString = reactElementToJSXString(obj);
    var expectedString = reactElementToJSXString(expected);

    this.assert(
      actualString === expectedString
      , "expected #{this} to be like #{exp}"
      , "expected #{this} not to be like #{exp}"
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.0009643201542912247, 'mean_word_length': 4.323076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2413722', 'n_tokens_mistral': 312, 'n_tokens_neox': 308, 'n_words': 78}