'use babel'

const { it } = require(process.env.SPEC_HELPER_SCRIPT)

describe('versionFromRange', function() {
  
})

@@ -65,53 +65,600 @@
 PT)%0A
-%0Adescribe('versionFromRange', function() %7B%0A  
+import %7B exists, versionFromRange %7D from '../lib/helpers'%0A%0Adescribe('exists', function() %7B%0A  it('works', async function() %7B%0A    expect(await exists(__filename)).toBe(true)%0A    expect(await exists('/tmp/non-existent-file')).toBe(false)%0A  %7D)%0A%7D)%0A%0Adescribe('versionFromRange', function() %7B%0A  it('extracts a version from semver range', function() %7B%0A    const version = '%5E2.2.0'%0A    expect(versionFromRange(version)).toEqual(%5B'2.2.0'%5D)%0A  %7D)%0A  it('works even on complex ranges', function() %7B%0A    const version = '%3E=1.4.0 %3C2.0.0'%0A    expect(versionFromRange(version)).toEqual(%5B'1.4.0', '2.0.0'%5D)%0A  %7D)
 %0A%7D)%0A

Add specs for exists and versionFromRange