     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'

if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
  chai = require 'chai' unless chai
  port = require '../src/lib/Port.coffee'
  socket = require '../src/lib/InternalSocket.coffee'
else
  port = require 'noflo/src/lib/Port.js'
  socket = require 'noflo/src/lib/InternalSocket.js'

describe 'Legacy Port', ->

  describe 'Untyped port instance', ->
    it 'should be of type "all"', ->
      p = new port.Port
      chai.expect(p.type).to.equal 'all'
      chai.expect(p.getDataType()).to.equal 'all'


      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', ->
