<commit_before>import os from 'os';
import test from 'ava';

// Otherwise, `os.userInfo()` would take precedence over `process.env.LOGNAME`.
delete os.userInfo;

test.serial('username()', async t => {
	process.env.LOGNAME = 'unicorn';
	t.is(await require('./')(), 'unicorn');
});

test.serial('username.sync()', async t => {
	process.env.LOGNAME = 'unicorn2';
	t.is(await require('./').sync(), 'unicorn2');
});<commit_msg>Remove unnecessary async function in the tests (#15)<commit_after>import os from 'os';
import test from 'ava';

// Otherwise, `os.userInfo()` would take precedence over `process.env.LOGNAME`.
delete os.userInfo;

test.serial('username()', async t => {
	process.env.LOGNAME = 'unicorn';
	t.is(await require('./')(), 'unicorn');
});

test.serial('username.sync()', t => {
	process.env.LOGNAME = 'unicorn2';
	t.is(require('./').sync(), 'unicorn2');
});
{'fraction_non_alphanumeric': 0.21928817451205512, 'fraction_numerical': 0.006888633754305396, 'mean_word_length': 5.055555555555555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1124627', 'n_tokens_mistral': 298, 'n_tokens_neox': 295, 'n_words': 71}