<commit_before>humanize = require '..'
require('chai').should()
assert = require 'assert'

describe 'deprecated behavior', ->

  it 'does nothing when changing the language like before', ->
    humanize(1000).should.equal '1 second'
    humanize.language = 'es'
    humanize(1000).should.equal '1 second'
    delete humanize.language

  it 'does nothing when setting the language as a string', ->
    humanize(1000, 'en').should.equal '1 second'
    humanize(1000, 'es').should.equal '1 second'
    humanize(1000, 'pt').should.equal '1 second'
    humanize(1000, 'garbage').should.equal '1 second'

  it 'removes old methods', ->
    assert.equal(humanize.componentsOf, undefined)
    assert.equal(humanize.addLanguage, undefined)
    assert.equal(humanize.defaults, undefined)
    assert.equal(humanize.language, undefined)<commit_msg>Remove Chai's should from deprecated tests<commit_after>humanize = require '..'
assert = require 'assert'

describe 'deprecated behavior', ->

  it 'does nothing when changing the language like before', ->
    assert.equal(humanize(1000), '1 second')
    humanize.language = 'es'
    assert.equal(humanize(1000), '1 second')
    delete humanize.language

  it 'does nothing when setting the language as a string', ->
    assert.equal(humanize(1000, 'en'), '1 second')
    assert.equal(humanize(1000, 'es'), '1 second')
    assert.equal(humanize(1000, 'pt'), '1 second')
    assert.equal(humanize(1000, 'garbage'), '1 second')

  it 'removes old methods', ->
    assert.equal(humanize.componentsOf, undefined)
    assert.equal(humanize.addLanguage, undefined)
    assert.equal(humanize.defaults, undefined)
    assert.equal(humanize.language, undefined)
{'fraction_non_alphanumeric': 0.13507109004739337, 'fraction_numerical': 0.035545023696682464, 'mean_word_length': 4.311320754716981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5272253', 'n_tokens_mistral': 542, 'n_tokens_neox': 496, 'n_words': 135}