const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const nock = require('nock');

chai.use(chaiAsPromised);
chai.should();
const expect = chai.expect;

const pnut = require('../lib/pnut');

describe('The pnut API wrapper', function () {

  before(function() {
    let root = 'https://api.pnut.io'
    nock(root)
      .get('/v0')
      .reply(200, {})

    nock(root)
      .get('/v0/posts/streams/global')
      .reply(200, {posts: 1})
  });

  after(function() {
    nock.cleanAll();
  });

  it('should get the global timeline', function() {;
    return pnut.global().should.become({'posts': 1})
  });
});
@@ -292,20 +292,20 @@
     let 
-root
+base
  = 'http
@@ -320,16 +320,18 @@
 pnut.io'
+;%0A
 %0A    noc
@@ -324,36 +324,36 @@
 .io';%0A%0A    nock(
-root
+base
 )%0A      .get('/v
@@ -392,12 +392,12 @@
 ock(
-root
+base
 )%0A  

Rename variable for more consitency