Browse Source

Still call done when stop server function is null

Kevin Sawicki 8 years ago
parent
commit
a7a92e1cd3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spec/api-crash-reporter-spec.js

+ 2 - 0
spec/api-crash-reporter-spec.js

@@ -49,6 +49,8 @@ describe('crashReporter module', function () {
       afterEach(function (done) {
         if (stopServer != null) {
           stopServer(done)
+        } else {
+          done()
         }
       })