<commit_before>"use strict";

const expect = require('chai').expect
const Up = require('./dist/index')


context("The Up library's methods can be invoked two ways:", () => {
  specify('By treating the module as a namespace', () => {
    expect(Up.parseAndRender('It actually worked?')).to.be.eql('<p>It actually worked?</p>')
  })

  specify('By treating the module as a class', () => {
    expect(new Up().parseAndRender('That seems *very* unlikely.')).to.be.eql('<p>That seems <em>very</em> unlikely.</p>')
  })
})<commit_msg>Use more appropriate assertion method<commit_after>"use strict";

const expect = require('chai').expect
const Up = require('./dist/index')


context("The Up library's methods can be invoked two ways:", () => {
  specify('By treating the module as a namespace', () => {
    expect(Up.parseAndRender('It actually worked?')).to.equal('<p>It actually worked?</p>')
  })

  specify('By treating the module as a class', () => {
    expect(new Up().parseAndRender('That seems *very* unlikely.')).to.equal('<p>That seems <em>very</em> unlikely.</p>')
  })
})
{'fraction_non_alphanumeric': 0.19480519480519481, 'fraction_numerical': 0.0, 'mean_word_length': 4.649214659685864, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '3696685', 'n_tokens_mistral': 330, 'n_tokens_neox': 328, 'n_words': 92}