<commit_before>import assert from '../../_test-helper/assert';
import KataUrl from '../kata-url';

process.env.KATAS_SERVICE_DOMAIN = 'katas.tddbin.test';

describe('get kata from katas.tddbin.com', function() {

  it('request from the right URL', function() {
    const kataUrlParam = 'kata=my/kata';
    const kataUrl = `http://${process.env.KATAS_SERVICE_DOMAIN}/katas/my/kata.js`;
    assert.equal(KataUrl.fromQueryString(kataUrlParam), kataUrl);
  });

});

<commit_msg>Better naming, for better readable test.<commit_after>import assert from '../../_test-helper/assert';
import KataUrl from '../kata-url';

process.env.KATAS_SERVICE_DOMAIN = 'katas.tddbin.test';

describe('get kata from katas.tddbin.com', function() {

  it('request from the right URL', function() {
    const kataUrlParam = 'kata=my/kata';
    const expectedUrl = `http://${process.env.KATAS_SERVICE_DOMAIN}/katas/my/kata.js`;
    assert.equal(KataUrl.fromQueryString(kataUrlParam), expectedUrl);
  });

});


{'fraction_non_alphanumeric': 0.166497461928934, 'fraction_numerical': 0.0, 'mean_word_length': 4.5083798882681565, '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': '3847970', 'n_tokens_mistral': 356, 'n_tokens_neox': 353, 'n_words': 63}