hunk.code_window:   t.ok(typeof isPositive === 'function', 'isPositive() is available')
     const isNegative = require(path.join(globalPrefix, 'node_modules', 'is-negative'))
     t.ok(typeof isNegative === 'function', 'isNegative() is available')
   })
  
hunk.labels: keep keep keep keep add
hunk.after_edit: test('always install latest when doing global installation without spec', async function (t: tape.Test) {
     await addDistTag('peer-c', '2.0.0', 'latest')
     const project = prepare(t)
     const globalPrefix = process.cwd()
     const opts = testDefaults({global: true, prefix: globalPrefix})
     await installPkgs(['peer-c@1'], opts)
     await installPkgs(['peer-c'], opts)
     t.equal(project.requireModule('peer-c/package.json').version, '2.0.0')
   })
hunk.file_path: test/install/global.ts
hunk.type: add
file: import path = require('path')
  import normalize = require('normalize-path')
  
  export default function pkgIdToFilename (pkgId: string) {
    if (pkgId.indexOf('file:') !== 0) return pkgId
  
    return `local/${encodeURIComponent(normalize(path.resolve(pkgId.slice(5))))}`
  }
  