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

test('error when the range does not satisfy the bin version', async t => {
	try {
		await fn('curl', '1.29.0');
	} catch (err) {
		t.is(err.name, 'InvalidBinVersion');
	}
});

test('no error when the range satisfies the bin version', async t => {
	await t.doesNotThrow(fn('curl', '>=1'));
});

@@ -24,18 +24,17 @@
 %0Aimport 
-fn
+m
  from '.
@@ -128,18 +128,17 @@
 %09%09await 
-fn
+m
 ('curl',
@@ -297,23 +297,19 @@
 t t.
-doesN
+n
 otThrow
-(fn
+s(m
 ('cu

update for latest AVA