var expect  = require('chai').expect;
var helpers = require('./helpers');

describe('Helpers', function() {
  it('Should be an object', function() {
    expect(helpers).to.be.a('object');
  });
  describe('Methods', function() {
    describe('seedDependencies', function() {
      it('Should be a function', function() {
        expect(helpers.seedDependencies).to.be.a('function');
      });
    });
    describe('gatherDetails', function() {
      it('Should be a function', function() {
        expect(helpers.gatherDetails).to.be.a('function');
      });
    });
    describe('fetchModuleDownloads', function() {
      it('Should be a function', function() {
        expect(helpers.fetchModuleDownloads).to.be.a('function');
      });
    });
  });
});

@@ -1,64 +1,61 @@
-var expect  = require('chai').expect;%0Avar helpers = require(
+import %7B expect %7D from 'chai';%0Aimport %7B NpmConfig %7D from 
 './h
@@ -61,17 +61,16 @@
 helpers'
-)
 ;%0A%0Adescr
@@ -103,183 +103,126 @@
 %7B%0A  
-it('Should be an object', function() %7B%0A    expect(helpers).to.be.a('object');%0A  %7D);%0A  describe('Methods', function() %7B%0A    describe('seedDependencies', function() %7B%0A  
+describe('NpmConfig', () =%3E %7B%0A    const deps = %7B%0A        %22lodash%22: %224.17.2%22,%0A        %22ramda%22: %220.22.1%22%0A    %7D;%0A
     it('
 Shou
@@ -209,33 +209,33 @@
 %0A    %7D;%0A    it('
-S
+s
 hould be a funct
@@ -234,236 +234,150 @@
  a f
-unction', function() %7B%0A        expect(helpers.seedDependencies).to.be.a('function');%0A      %7D);%0A    %7D);%0A    describe('gatherDetails', function() %7B%0A      it('Should be a function', function() %7B%0A        expect(helpers.gatherDetails
+actory that returns a config object', () =%3E %7B%0A      expect(NpmConfig).to.be.a('function');%0A      const obj = NpmConfig(deps);%0A      expect(obj
 ).to
@@ -377,34 +377,33 @@
 obj).to.be.a
+n
 ('
-function
+object
 ');%0A      %7D)
@@ -404,181 +404,225 @@
     
-%7D);%0A    %7D);%0A    describe('fetchModuleDownloads', function() %7B%0A      it('Should be a function', function() %7B%0A        expect(helpers.fetchModuleDownloads).to.be.a('function');
+expect(obj).to.deep.equal(%7B%0A        hostname: 'api.npmjs.org',%0A        path: '/downloads/point/last-month/lodash,ramda',%0A        method: 'GET',%0A        headers: %7B%0A          'User-Agent': 'cachilders/backpat'%0A        %7D
 %0A   

write test for NpmConfig factory