     proxyquire '../lib/run.js',
       '@semantic-release/last-release-npm': lastRelease
       'fs': fs
-
-    # Check
-    expects = ->
+    .then ->
       expect(lastRelease.args[0][1]).to.deep.equal
         pkg: pkg
         npm:


      done()

    setTimeout expects, 100

chai.use require 'sinon-chai'
expect = chai.expect
sinon = require 'sinon'
domain = require 'domain'

proxyquire = require 'proxyquire'
mockFs = require 'mock-fs'
