<commit_before>import test from 'ava';
import execa from 'execa';
import {version} from './package.json';

test('should have an error with an invalid URL', t => {
  t.throws(execa('./cli.js', ['cauealves.com']), /The given URL was not valid./);
});

test('should show the version when pass a parameter --version', async t => {
  t.is(await execa.stdout('./cli.js', ['--version']), version);
});

test('should have an error when a domain is not valid', async t => {
  let errorMessage = await execa.stdout('./cli.js', ['http://cauealves.cmo']);
  t.is(errorMessage, '\n\u001b[?25lCould not resolve the URL: http://cauealves.cmo \nPlease, check the spelling or make sure is accessible.\n\n\u001b[?25h');
});
<commit_msg>Fix typo os test<commit_after>import test from 'ava';
import execa from 'execa';
import {version} from './package.json';

test('should have an error with an invalid URL', t => {
  t.throws(execa('./cli.js', ['cauealves.com']), /The given URL was not valid./);
});

test('should show the version when pass a parameter --version', async t => {
  t.is(await execa.stdout('./cli.js', ['--version']), version);
});

test('should have an error with an invalid public domain', async t => {
  let errorMessage = await execa.stdout('./cli.js', ['http://cauealves.cmo']);
  t.is(errorMessage, '\n\u001b[?25lCould not resolve the URL: http://cauealves.cmo \nPlease, check the spelling or make sure is accessible.\n\n\u001b[?25h');
});

{'fraction_non_alphanumeric': 0.18446601941747573, 'fraction_numerical': 0.013869625520110958, 'mean_word_length': 4.247272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4562668', 'n_tokens_mistral': 488, 'n_tokens_neox': 475, 'n_words': 156}