import path from 'path';
import test from 'ava';
import callsites from '.';

test('main', t => {
	t.is(path.basename(callsites()[0].getFileName()), 'test.js');
});

@@ -157,8 +157,374 @@
 ');%0A%7D);%0A
+%0Atest('nested', t =%3E %7B%0A%09const g = () =%3E callsites();%0A%09const f = () =%3E g();%0A%0A%09const sites = f().slice(0, 3).map(site =%3E (%7B%0A%09%09fileName: site.getFileName(),%0A%09%09functionName: site.getFunctionName()%0A%09%7D));%0A%0A%09t.deepEqual(sites, %5B%0A%09%09%7BfileName: __filename, functionName: 'g'%7D,%0A%09%09%7BfileName: __filename, functionName: 'f'%7D,%0A%09%09%7BfileName: __filename, functionName: null%7D%0A%09%5D);%0A%7D);%0A

Add nested call test (#15)