import test from 'ava';
import fn from './';

test('main', async t => {
	const x = [];

	await * [
		(async () => {
			await fn();
			x.push(0);
		})(),
		(async () => {
			x.push(1);
		})()
	];

	t.same(x, [1, 0]);
});

test('transfers value', async t => {
	t.same(await Promise.resolve('x').then(fn), 'x');
});

@@ -92,10 +92,20 @@
 ait 
-* 
+Promise.all(
 %5B%0A%09%09
@@ -200,18 +200,24 @@
 )%0A%09%5D
+)
 ;%0A%0A%09t.
-same
+deepEqual
 (x, 
@@ -274,12 +274,17 @@
 %0A%09t.
-same
+deepEqual
 (awa

upgrade to latest AVA