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

const reVersion = /\d+\.\d+\.\d+/;

test('latest version', async t => {
	t.regexTest(reVersion, await fn('ava'));
});

test('latest version scoped', async t => {
	t.regexTest(reVersion, await fn('@sindresorhus/df'));
});

@@ -24,18 +24,17 @@
 %0Aimport 
-fn
+m
  from '.
@@ -122,39 +122,34 @@
 egex
-Test(reVersion, 
+(
 await 
-fn
+m
 ('ava')
+, reVersion
 );%0A%7D
@@ -207,32 +207,16 @@
 egex
-Test(reVersion, 
+(
 await 
-fn
+m
 ('@s
@@ -231,15 +231,26 @@
 hus/df')
+, reVersion
 );%0A%7D);%0A

update for latest AVA