<commit_before>import test from 'ava';
import fn from './';

test(t => {
	t.throws(() => fn('unicorn.png\u0000'), Error, 'Path must be a string without null bytes.');
	t.doesNotThrow(() => fn('unicorn.png'));
	t.end();
});<commit_msg>update tests for latest AVA version<commit_after>import test from 'ava';
import fn from './';

test(t => {
	t.throws(() => fn('unicorn.png\u0000'), Error, 'Path must be a string without null bytes.');
	t.doesNotThrow(() => fn('unicorn.png'));
});
{'fraction_non_alphanumeric': 0.21666666666666667, 'fraction_numerical': 0.016666666666666666, 'mean_word_length': 4.795180722891566, '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': '2900705', 'n_tokens_mistral': 167, 'n_tokens_neox': 162, 'n_words': 48}