     p = null
     describe 'initially', ->
       it 'should retain the given type', ->
-        p = new port.Port 'string'
+        p = new noflo.Port 'string'
         chai.expect(p.type).to.equal 'string'
       it 'should not have a name', ->
         chai.expect(p.name).to.be.a 'null'

        chai.expect(-> p.disconnect()).to.throw Error

    describe 'with attached socket', ->
      s = new socket.InternalSocket
      s2 = new socket.InternalSocket
      it 'should emit an event', (done) ->
        p.once 'attach', (sock) ->
          chai.expect(sock).to.equal s

      s.send 'Baz'

  describe 'Output port', ->
    p = new noflo.Port
    s = new noflo.internalSocket.InternalSocket
    p.attach s
    it 'should connect the socket', (done) ->
      s.once 'connect', ->
