old_contents: /* eslint-env jasmine */
  var nock = require('nock')
  var VoucherifyClient = require('./client-loader')
  var fixtures = require('./fixtures')
  var reqWithBody = fixtures.reqWithBody
  nock.disableNetConnect()
  
  describe('Distributions API', function () {
    var client = new VoucherifyClient({
      applicationId: 'node-sdk-test-id',
      clientSecretKey: 'node-sdk-test-secret'
    })
  
    describe('publish voucher', function () {
      it('should publish by camaign name', function (done) {
        var server = nock('https://api.voucherify.io', reqWithBody)
          .post('/v1/vouchers/publish')
          .query({campaign: 'test-campaign'})
          .reply(200, {})
  
        client.distributions.publish('test-campaign')
        .then(function () {
          server.done()
          done()
        })
      })
  
      it('should publish by voucher', function (done) {
        var server = nock('https://api.voucherify.io', reqWithBody)
          .post('/v1/vouchers/publish', {
            campaign: 'test-campaign',
            voucher: 'test-voucher'
          })
          .reply(200, {})
  
        client.distributions.publish({
          campaign: 'test-campaign',
          voucher: 'test-voucher'
        })
        .then(function () {
          server.done()
          done()
        })
      })
    })
  })
  
new_contents: /* eslint-env jasmine */
  var nock = require('nock')
  var VoucherifyClient = require('./client-loader')
  var fixtures = require('./fixtures')
  var reqWithBody = fixtures.reqWithBody
  nock.disableNetConnect()
  
  describe('Distributions API', function () {
    var client = new VoucherifyClient({
      applicationId: 'node-sdk-test-id',
      clientSecretKey: 'node-sdk-test-secret'
    })
  
    describe('publish voucher', function () {
      it('should publish by camaign name', function (done) {
        var server = nock('https://api.voucherify.io', reqWithBody)
          .post('/v1/vouchers/publish', {
              campaign: 'test-campaign'
          })
          .reply(200, {})
  
        client.distributions.publish('test-campaign')
        .then(function () {
          server.done()
          done()
        })
      })
  
      it('should publish by voucher', function (done) {
        var server = nock('https://api.voucherify.io', reqWithBody)
          .post('/v1/vouchers/publish', {
            campaign: 'test-campaign',
            voucher: 'test-voucher'
          })
          .reply(200, {})
  
        client.distributions.publish({
          campaign: 'test-campaign',
          voucher: 'test-voucher'
        })
        .then(function () {
          server.done()
          done()
        })
      })
    })
  })
  
subject: Fix test nock asseriton