<commit_before>"use strict";

/**
 * Requirements
 */
let urlify = require(SOURCE_ROOT + '/utils/urls.js').urlify;

/**
 * Spec
 */
describe('utils/urls', function()
{
    describe('#urlify', function()
    {
        it('should replace any spaces with dashes', function()
        {
            expect(urlify('this is sparta')).to.be.equal('this-is-sparta');
        });

        it('should allow to configure the replacement for spaces', function()
        {
            expect(urlify('this is sparta', '_')).to.be.equal('this_is_sparta');
        });
<commit_msg>style(utils): changed let to const<commit_after>"use strict";

/**
 * Requirements
 */
const urlify = require(SOURCE_ROOT + '/utils/urls.js').urlify;

/**
 * Spec
 */
describe('utils/urls', function()
{
    describe('#urlify', function()
    {
        it('should replace any spaces with dashes', function()
        {
            expect(urlify('this is sparta')).to.be.equal('this-is-sparta');
        });

        it('should allow to configure the replacement for spaces', function()
        {
            expect(urlify('this is sparta', '_')).to.be.equal('this_is_sparta');
        });

{'fraction_non_alphanumeric': 0.17289313640312773, 'fraction_numerical': 0.0, 'mean_word_length': 2.7041800643086815, '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': '477555', 'n_tokens_mistral': 346, 'n_tokens_neox': 347, 'n_words': 74}