/// <reference path="../../../typings/index.d.ts"/>
import createResolver from '@pnpm/default-resolver'
import { createFetchFromRegistry } from '@pnpm/fetch'
import test = require('tape')

test('createResolver()', t => {
  const getCredentials = () => ({ authHeaderValue: '', alwaysAuth: false })
  const resolve = createResolver(createFetchFromRegistry({}), getCredentials, {
    storeDir: '.store',
  })
  t.equal(typeof resolve, 'function')
  t.end()
})
