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');
});

@@ -285,30 +285,24 @@
 ame.sync()',
- async
  t =%3E %7B%0A%09pro
@@ -330,38 +330,32 @@
 nicorn2';%0A%09t.is(
-await 
 require('./').sy

Remove unnecessary async function in the tests (#15)