title: 'Active Test'
description: 'Testing active'
type: flow
nodes:
  -
    id: '1'
    ns: test
    name: active
  -
    id: '2'
    ns: test
    name: async
  -
    id: '3'
    ns: test
    name: asyncDone
links: []
nodeDefinitions:
  test:
    active:
      ns: test
      name: active
      fn: "output.out = $.get('data')"
      ports:
        input:
          data:
            type: string
        output:
          out:
            type: string
    async:
      ns: test
      name: async
      dependencies:
        npm:
          fs: builtin
      fn: 'output = [fs, "readFile", $.data]'
      ports:
        input:
          data:
            type: string
        output:
          error:
            type: string
          out:
            type: any
    asyncDone:
      ns: test
      name: asyncDone
      fn: 'output = function(cb) { cb({out: $.create("hi!")}); done(); }'
      ports:
        input:
          data:
            type: string
        output:
          out:
            type: string
