   noflo = require 'noflo'
   root = 'noflo'
 
-describe 'NoFlo Legacy Network', ->
+describe.only 'NoFlo Legacy Network', ->
   Split = ->
-    new noflo.Component
+    return new noflo.Component
       inPorts:
         in: datatype: 'all'
       outPorts:

        chai.expect(port.node).to.equal 'Callback'
        chai.expect(port.getId()).to.equal "Callback #{name.toUpperCase()}"

    it 'should contain 1 connection between processes and 2 for IIPs', ->
      chai.expect(n.connections).to.not.be.empty
      chai.expect(n.connections.length).to.equal 3

    it 'should have started in debug mode', ->
      chai.expect(n.debug).to.equal true
      chai.expect(n.getDebug()).to.equal true

    it 'should emit a process-error when a component throws', (done) ->
      g.removeInitial 'Callback', 'callback'
      g.removeInitial 'Merge', 'in'
      g.addInitial (data) ->
        throw new Error 'got Foo'
      , 'Callback', 'callback'
      g.addInitial 'Foo', 'Merge', 'in'
      n.once 'process-error', (err) ->

              port: 'in'
              index: undefined
            done()
            return
          , 10
          return
        g.addEdge 'A', 'out', 'B', 'in'
        return
      it 'should not contain the edge after removal', (done) ->
        g.once 'removeEdge', ->
          setTimeout ->
            chai.expect(n.connections).to.be.empty
            done()
            return
          , 10
          return
        g.removeEdge 'A', 'out', 'B', 'in'
        return
      return
    return
  describe 'with a simple graph', ->
    g = null
    n = null
