       g.baseDir = root
       n = new noflo.Network g
       n.loader.listComponents (err, components) ->
-        return done err if err
+        if err
+          done err
+          return
         n.loader.components.Split = Split
         g.addNode 'A', 'Split'
         g.addNode 'B', 'Split'
         g.addEdge 'A', 'out', 'B', 'in'
         n.connect done
+        return
+      return
     it 'should initially have debug enabled', ->
       chai.expect(n.getDebug()).to.equal true
+      return
     it 'should have propagated debug setting to connections', ->
       chai.expect(n.connections[0].debug).to.equal n.getDebug()
+      return
     it 'calling setDebug with same value should be no-op', ->
       n.setDebug true
       chai.expect(n.getDebug()).to.equal true
       chai.expect(n.connections[0].debug).to.equal n.getDebug()
+      return
     it 'disabling debug should get propagated to connections', ->
       n.setDebug false
       chai.expect(n.getDebug()).to.equal false
       chai.expect(n.connections[0].debug).to.equal n.getDebug()
+      return
+    return
+  return

          chai.expect(data.id).to.equal 'Func'
          chai.expect(data.icon).to.equal 'flask'
          done()
        n.processes.Func.component.setIcon 'flask'

    describe 'once stopped', ->
      it 'should be marked as stopped', (done) ->
        n.stop ->
          chai.expect(n.isStarted()).to.equal false
          done()

    describe 'without the delay option', ->
      it 'should auto-start', (done) ->
        g.removeInitial 'Func', 'callback'
        newGraph = noflo.graph.loadJSON g.toJSON(), (err, graph) ->
          return done err if err
          cb = done
          # Pass the already-initialized component loader
          graph.componentLoader = n.loader
          graph.addInitial (data) ->
            chai.expect(data).to.equal 'Foo'
            cb()
          , 'Func', 'callback'
          noflo.createNetwork graph, (err, nw) ->
            return done err if err
          return

  describe 'with nodes containing default ports', ->
    g = null
    testCallback = null

        data = input.getData 'in'
        cb data
        output.done()
        return
  describe 'with an empty graph', ->
    g = null
    n = null
