UNPKG

noflo

Version:

Flow-Based Programming environment for JavaScript

697 lines (674 loc) 45.2 kB
noflo.ArrayPort is deprecated. Please port to noflo.InPort/noflo.OutPort and use addressable: true noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.ArrayPort is deprecated. Please port to noflo.InPort/noflo.OutPort and use addressable: true noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.ArrayPort is deprecated. Please port to noflo.InPort/noflo.OutPort and use addressable: true noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort   Legacy ArrayPort  Untyped ArrayPort instance noflo.ArrayPort is deprecated. Please port to noflo.InPort/noflo.OutPort and use addressable: true noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should be of type "all"  ArrayPort instance noflo.ArrayPort is deprecated. Please port to noflo.InPort/noflo.OutPort and use addressable: true noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should retain the given type  without attached socket  ✓ should not be attached initially  ✓ should allow connections  ✓ should not be connected initially  ✓ should not contain a socket initially  ✓ should not allow connecting  ✓ should not allow beginning groups  ✓ should not allow sending data  ✓ should not allow ending groups  ✓ should not allow disconnecting  with attached socket  ✓ should emit an event  ✓ should be marked as attached  ✓ should still allow more connections  ✓ should not be connected initially  ✓ should have a reference to the socket  ✓ should allow other sockets to be attached  ✓ should emit an event on detaching  ✓ should not be attached any longer  ✓ should not contain the removed socket any longer  Input ArrayPort  ✓ should emit connection events  ✓ should be connected after that  ✓ should emit begin group events  ✓ should emit data events  ✓ should emit end group events  ✓ should emit disconnection events  ✓ should not be connected after that  ✓ should connect automatically when sending  Input ArrayPort with specified index  ✓ shouldn't be attached initially  ✓ should emit attaching events  ✓ should be attached after that  ✓ shouldn't have other indexes attached after that  ✓ should emit connection events  ✓ should be connected after that  ✓ shouldn't have other indexes connected after that  ✓ should emit begin group events  ✓ should emit data events  ✓ should emit end group events  ✓ should emit disconnection events  ✓ should not be connected after that  ✓ should connect automatically when sending  ✓ should emit attaching events  ✓ shouldn't be attached after that  Output ArrayPort  ✓ should connect the socket  ✓ should begin groups on the socket  ✓ should send data to the socket  ✓ should end groups on the socket  ✓ should disconnect the socket  ✓ should connect automatically when sending  asCallback interface  with a non-existing component  ✓ should be able to wrap it  ✓ should fail execution  with simple asynchronous component  ✓ should be able to wrap it  ✓ should execute network with input map and provide output map (59ms)  ✓ should execute network with simple input and provide simple output (60ms)  ✓ should not mix up simultaneous runs (79ms)  ✓ should execute a network with a sequence and provide output sequence (60ms)  with the raw option  ✓ should execute a network with a sequence and provide output sequence (62ms)  with a component sending an error  ✓ should execute network with input map and provide error (57ms)  ✓ should execute network with simple input and provide error (55ms)  with a component sending streams  ✓ should execute network with input map and provide output map with streams as arrays (56ms)  ✓ should execute network with simple input and and provide simple output with streams as arrays (56ms)  with the raw option  ✓ should execute network with input map and provide output map with IP objects (55ms)  AsyncComponent with missing ports noflo.AsyncComponent is deprecated. Please port to Process API  ✓ should throw an error on instantiation when no IN defined noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.AsyncComponent is deprecated. Please port to Process API  ✓ should throw an error on instantion when no OUT defined  AsyncComponent without a doAsync method noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.AsyncComponent is deprecated. Please port to Process API noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should throw an error if there is no connection to the ERROR port noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.AsyncComponent is deprecated. Please port to Process API noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should send an error to the ERROR port if connected noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.AsyncComponent is deprecated. Please port to Process API noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should send groups and error to the ERROR port if connected  Implemented AsyncComponent noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.AsyncComponent is deprecated. Please port to Process API noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should send load information and packets in correct order (301ms)  Component  with required ports  ✓ should throw an error upon sending packet to an unattached required port  ✓ should be cool with an attached port  with component creation shorthand InPort process callback is deprecated. Please use Process API or the InPort handle option InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should make component creation easy InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should throw errors if there is no error port InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should throw errors if there is a non-attached error port InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should not throw errors if there is a non-required error port InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should send errors if there is a connected error port  defining ports with invalid names  ✓ should throw an error with uppercase letters in inport  ✓ should throw an error with uppercase letters in outport  ✓ should throw an error with special characters in inport  starting a component  ✓ should flag the component as started  shutting down a component  ✓ should flag the component as not started  with object-based IPs InPort handle callback is deprecated. Please use Process API  ✓ should speak IP objects InPort handle callback is deprecated. Please use Process API InPort handle callback is deprecated. Please use Process API  ✓ should support substreams  with process function  ✓ should trigger on IPs  ✓ should trigger on IPs to addressable ports  ✓ should be able to send IPs to addressable connections  ✓ trying to send to addressable port without providing index should fail  ✓ should not be triggered by non-triggering ports  ✓ should fetch undefined for premature data  ✓ should receive and send complete noflo.IP objects  ✓ should receive and send just IP data if wanted  ✓ should receive IPs and be able to selectively find them  ✓ should keep last value for controls  ✓ should keep last data-typed IP packet for controls  ✓ should isolate packets with different scopes  ✓ should be able to change scope  ✓ should support integer scopes  ✓ should preserve order between input and output  ✓ should ignore order between input and output  ✓ should throw errors if there is no error port  ✓ should throw errors if there is a non-attached error port  ✓ should not throw errors if there is a non-required error port  ✓ should send out string other port if there is only one port aside from error  ✓ should send object out other port if there is only one port aside from error  ✓ should throw an error if sending without specifying a port and there are multiple ports  ✓ should send errors if there is a connected error port  ✓ should send substreams with multiple errors per activation  ✓ should forward brackets for map-style components  ✓ should forward brackets for map-style components with addressable outport  ✓ should forward brackets for async map-style components with addressable outport  ✓ should forward brackets for map-style components with addressable in/outports  ✓ should forward brackets for async map-style components with addressable in/outports  ✓ should forward brackets to error port in async components  ✓ should not forward brackets if error port is not connected  ✓ should support custom bracket forwarding mappings with auto-ordering  ✓ should de-duplicate brackets when asynchronously forwarding from multiple inports  ✓ should de-duplicate brackets when synchronously forwarding from multiple inports  ✓ should not apply auto-ordering if that option is false  ✓ should forward noflo.IP metadata for map-style components  ✓ should be safe dropping IPs  with custom callbacks  ✓ should fail on wrong input  ✓ should send substreams  using streams  ✓ should not trigger without a full stream without getting the whole stream  ✓ should trigger when forwardingBrackets because then it is only data with no brackets and is a full stream  ✓ should get full stream when it has a single packet stream and it should clear it  ✓ should get full stream when it has a full stream, and it should clear it  ✓ should get data when it has a full stream  with a simple ordered stream  ✓ should send packets with brackets in expected order when synchronous  ✓ should send packets with brackets in expected order when asynchronous  with generator components  ✓ should emit start event when started  ✓ should emit activate/deactivate event on every tick  ✓ should emit end event when stopped and no activate after it  MergeObjects component  - should not trigger if input is not complete  - should merge objects when input is complete  - should obey the overwrite control  ComponentLoader with no external packages installed  ✓ should initially know of no components  ✓ should not initially be ready  ✓ should not initially be processing  ✓ should not have any packages in the checked list  ✓ should be able to read a list of components  normalizing names  ✓ should return simple module names as-is  ✓ should return empty for NoFlo core  ✓ should strip noflo-  ✓ should strip NPM scopes  ✓ should strip NPM scopes and noflo-  after listing components  ✓ should have the Graph component registered  loading the Graph component  ✓ should be able to load the component  ✓ should contain input ports  ✓ should have "on" method on the input port  ✓ it should know that Graph is a subgraph  ✓ should know the description for the Graph  ✓ should be able to provide an icon for the Graph  loading a subgraph InPort process callback is deprecated. Please use Process API or the InPort handle option noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should remove `graph` and `start` ports InPort process callback is deprecated. Please use Process API or the InPort handle option noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should not automatically start the subgraph if there is no `start` port (48ms) InPort process callback is deprecated. Please use Process API or the InPort handle option noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should also work with a passed graph object (52ms)  loading the Graph component  ✓ should be able to load the component  ✓ should have a reference to the Component Loader's baseDir  loading a component  ✓ should return an error on an invalid component type  register a component at runtime  ✓ should be available in the components list noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should be able to load the component  ✓ should have the correct ports  ✓ should have inherited its icon from the library  ✓ should emit an event on icon change noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ new instances should still contain the original icon noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ after setting an icon for the Component class, new instances should have that  ✓ should not affect the original instance  reading sources  - should be able to provide source code for a component  - should return an error for missing components  - should return an error for non-file components  - should be able to provide source for a graph file component  - should be able to provide source for a graph object component  writing sources  with working code  - should be able to set the source  - should be a loadable component  with non-working code  - should be able to set the source  - should not be a loadable component  ComponentLoader with a fixture project  - should be possible to instantiate  - should initially know of no components  - should not initially be ready  - should be able to read a list of components  - should be able to load a local component  - should be able to load a component from a dependency  - should be able to load a dynamically registered component from a dependency  - should be able to load core Graph component  - should fail loading a missing component  Component traits  MapComponent noflo.helpers.MapComponent is deprecated. Please port to Process API  ✓ should pass data to the callback noflo.helpers.MapComponent is deprecated. Please port to Process API  ✓ should pass groups to the callback noflo.helpers.MapComponent is deprecated. Please port to Process API  ✓ should send groups and disconnect through  WirePattern  when grouping by packet groups noflo.helpers.WirePattern group option is deprecated. Please port to Process API noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should pass data and groups to the callback noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should work without a group provided noflo.helpers.WirePattern group option is deprecated. Please port to Process API noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should process inputs for different groups independently with group: true noflo.helpers.WirePattern group option is deprecated. Please port to Process API  ✓ should support asynchronous handlers (102ms) noflo.helpers.WirePattern group option is deprecated. Please port to Process API noflo.helpers.WirePattern legacy mode is deprecated noflo.helpers.MultiError is deprecated. Send errors to error port instead  ✓ should support asynchronous handlers in legacy mode (104ms) noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should not forward groups if forwarding is off noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should forward groups from a specific port only noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should forward groups from selected ports only  when `this` context is important noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should correctly bind component to `this` context  ✓ should correctly bind component to `this` context in async mode  when in async mode and packet order matters  ✓ should preserve input order at the output  ✓ should throw if receiveStreams is used  ✓ should throw if sendStreams is used  when grouping by field noflo.helpers.WirePattern field option is deprecated. Please port to Process API  ✓ should match objects by specific field (45ms)  when there are multiple output routes  ✓ should send output to one or more of them  ✓ should send output to one or more of indexes  when there are parameter ports noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API noflo.helpers.WirePattern sendDefaults method is deprecated. Please start with a Network  ✓ should wait for required params without default value noflo.helpers.WirePattern sendDefaults method is deprecated. Please start with a Network  ✓ should work for async procs too (57ms) noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should reset state if shutdown() is called noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API noflo.helpers.WirePattern sendDefaults method is deprecated. Please start with a Network  ✓ should drop premature data if configured to do so  without output ports  ✓ should be fine still  with many inputs and groups in async mode InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should handle mixed flow well (311ms)  with many inputs and groups in sync mode InPort process callback is deprecated. Please use Process API or the InPort handle option noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should handle mixed flow well  for batch processing noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API InPort process callback is deprecated. Please use Process API or the InPort handle option  - should process sequences of packets separated by disconnects  for batch processing with groups noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should wrap entire sequence with groups  with addressable ports noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should wait for all param and any data port values (default) noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should wait for any param and all data values noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should wait for all indexes of a single input noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API  ✓ should behave normally with string output from another component  when grouping requests noflo.helpers.WirePattern group option is deprecated. Please port to Process API  ✓ should group requests by outer UUID group (106ms)  when using scopes noflo.helpers.WirePattern postpone and resume are deprecated. Please port to Process API  ✓ should scope requests by proper UUID (105ms)  MultiError  with simple sync processes noflo.helpers.WirePattern synchronous is deprecated. Please port to Process API noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead noflo.helpers.WirePattern fail method is deprecated. Please send error to callback instead  ✓ should support multiple customized error messages  ✓ should pass if everything is correct noflo.helpers.WirePattern fail method is deprecated. Please send error to callback instead noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead  ✓ should handle fatals and runtimes normally  with async processes and groups noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead noflo.helpers.WirePattern fail method is deprecated. Please send error to callback instead  ✓ should support multiple error messages and groups and scope  ✓ should pass if everything is correct noflo.helpers.WirePattern fail method is deprecated. Please send error to callback instead noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead  ✓ should handle fatals and runtimes normally InPort handle callback is deprecated. Please use Process API noflo.helpers.MultiError is deprecated. Send errors to error port instead  ✓ should reset state if component is shut down  Inport Port  with default options  ✓ should be of datatype "all"  ✓ should not be required  ✓ should not be addressable  ✓ should not be buffered  with custom type  ✓ should retain the type  without attached sockets  ✓ should not be attached  ✓ should allow attaching  ✓ should not be connected initially  ✓ should not contain a socket initially  with processing function called with port as context  ✓ should set context to port itself  with default value  ✓ should send the default value as a packet, though on next tick after initialization  ✓ should send the default value before IIP  with options stored in port  ✓ should store all provided options in port, whether we expect it or not  with data type information  ✓ should accept a 'all' data type  ✓ should accept a 'string' data type  ✓ should accept a 'number' data type  ✓ should accept a 'int' data type  ✓ should accept a 'object' data type  ✓ should accept a 'array' data type  ✓ should NOT accept a 'not' data type  ✓ should NOT accept a 'valie' data type  ✓ should NOT accept a 'data' data type  ✓ should NOT accept a 'types' data type  with TYPE (i.e. ontology) information  ✓ should be a URL or MIME  with buffering InPort process callback is deprecated. Please use Process API or the InPort handle option InPort.receive is deprecated. Use InPort.get instead InPort.receive is deprecated. Use InPort.get instead InPort.receive is deprecated. Use InPort.get instead InPort.receive is deprecated. Use InPort.get instead InPort.receive is deprecated. Use InPort.get instead InPort.receive is deprecated. Use InPort.get instead InPort.receive is deprecated. Use InPort.get instead  ✓ should buffer incoming packets until `receive()`d InPort.contains is deprecated. Use InPort.has instead  ✓ should be able to tell the number of contained data packets InPort.receive is deprecated. Use InPort.get instead  ✓ should return undefined when buffer is empty InPort.receive is deprecated. Use InPort.get instead InPort.contains is deprecated. Use InPort.has instead  ✓ shouldn't expose the receive method without buffering  with accepted enumerated values  ✓ should accept certain values  ✓ should throw an error if value is not accepted  with processing shorthand InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should create a port with a callback InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should also accept metadata (i.e. options) when provided  with IP handle callback option InPort handle callback is deprecated. Please use Process API  ✓ should pass IP objects to handler InPort handle callback is deprecated. Please use Process API  ✓ should translate legacy events to IP objects InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should translate IP objects to legacy events  IP object  ✓ should create IPs of different types  ✓ should be moved to an owner  ✓ should support sync context scoping  ✓ should be able to clone itself  ✓ should dispose its contents when dropped  NoFlo Network  with an empty graph  ✓ should initially be marked as stopped  ✓ should initially have no processes  ✓ should initially have to connections  ✓ should initially have no IIPs  ✓ should have reference to the graph  ✓ should know its baseDir  ✓ should have a ComponentLoader  ✓ should have transmitted the baseDir to the Component Loader  ✓ should be able to list components  ✓ should have an uptime  with new node  ✓ should contain the node  ✓ should have transmitted the node metadata to the process  ✓ should not contain the node after removal  with a simple graph  ✓ should send some initials when started  ✓ should contain two processes  ✓ the ports of the processes should know the node names  ✓ should contain 1 connection between processes and 2 for IIPs  ✓ should have started in debug mode  ✓ should emit a process-error when a component throws  once started  ✓ should be marked as started  with a renamed node  ✓ should have the process in a new location  ✓ shouldn't have the process in the old location  ✓ should have informed the ports of their new node name  with process icon change  ✓ should emit an icon event  once stopped  ✓ should be marked as stopped  with nodes containing default ports InPort process callback is deprecated. Please use Process API or the InPort handle option InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should send default values to nodes without an edge InPort process callback is deprecated. Please use Process API or the InPort handle option InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should not send default values to nodes with an edge InPort process callback is deprecated. Please use Process API or the InPort handle option InPort process callback is deprecated. Please use Process API or the InPort handle option  ✓ should not send default values to nodes with IIP  Nodes are added first, then edges, then initializers (i.e. IIPs), and in order of definition order within each  ✓ should add nodes, edges, and initials, in that order  with an existing IIP  ✓ should call the Callback with the original IIP value  ✓ should allow removing the IIPs  ✓ new IIPs to replace original ones should work correctly  on stopping  ✓ processes should be running before the stop call  ✓ should emit the end event  ✓ should have called the shutdown method of each process  with a very large network  ✓ should be able to connect without errors (5119ms)  Network Lifecycle  with WirePattern sending to Process API  ✓ should forward old-style groups as expected (67ms)  ✓ should forward new-style brackets as expected (66ms)  ✓ should forward scopes as expected (69ms)  pure Process API merging two inputs  ✓ should forward new-style brackets as expected (61ms)  ✓ should forward new-style brackets as expected regardless of sending order (61ms)  ✓ should forward scopes as expected (60ms)  Process API mixed with legacy merging two inputs  ✓ should forward new-style brackets as expected (56ms)  ✓ should forward new-style brackets as expected regardless of sending order (56ms)  Process API mixed with Legacy and WirePattern merging two inputs  ✓ should forward new-style brackets as expected (56ms)  ✓ should forward new-style brackets as expected regardless of sending order (55ms)  Process API mixed with WirePattern and legacy merging two inputs  ✓ should forward new-style brackets as expected (56ms)  ✓ should forward new-style brackets as expected regardless of sending order (55ms)  with a Process API Generator component  ✓ should not be running initially  ✓ should not be running even when network starts  ✓ should start generating when receiving a start packet (109ms)  ✓ should stop generating when receiving a stop packet (120ms)  NoFlo interface  ✓ should be able to tell whether it is running on browser  Outport Port  with addressable ports  ✓ should be able to send to a specific port  ✓ should be able to send to index 0  ✓ should throw an error when sent data without address  ✓ should throw an error when a specific port is requested with non-addressable port  ✓ should give correct port index when detaching a connection  with caching ports  ✓ should repeat the previously sent value on attach event  ✓ should support addressable ports  with IP objects  ✓ should send data IPs and substreams  ✓ should send non-clonable objects by reference  ✓ should clone clonable objects on fan-out  Legacy Port  Untyped port instance noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should be of type "all"  Port instance  initially noflo.Port is deprecated. Please port to noflo.InPort/noflo.OutPort  ✓ should retain the given type  ✓ should not have a name  ✓ should not have a node name  ✓ should return "Port" as identifier  with given name and node  ✓ should return correct ID  without attached socket  ✓ should not be attached initially  ✓ should allow a connection  ✓ should not be connected initially  ✓ should not contain a socket initially  ✓ should not allow connecting  ✓ should not allow beginning groups  ✓ should not allow sending data  ✓ should not allow ending groups  ✓ should not allow disconnecting  with attached socket  ✓ should emit an event  ✓ should be marked as attached  ✓ should not be connected initially  ✓ should have a reference to the socket  ✓ should allow other sockets to be attached  ✓ should emit an event on detaching  ✓ should still be attached  ✓ should not be attached any longer  ✓ should not contain a socket any longer  Input port  ✓ should emit connection events  ✓ should be connected after that  ✓ should emit begin group events  ✓ should emit data events  ✓ should emit end group events  ✓ should emit disconnection events  ✓ should not be connected after that  ✓ should connect automatically when sending  Output port  ✓ should connect the socket  ✓ should begin groups on the socket  ✓ should send data to the socket  ✓ should end groups on the socket  ✓ should disconnect the socket  ✓ should connect automatically when sending  Scope isolation  with WirePattern sending to Process API  ✓ should forward old-style groups as expected  ✓ should forward new-style brackets as expected  ✓ should forward scopes as expected  pure Process API merging two inputs  ✓ should forward new-style brackets as expected  ✓ should forward new-style brackets as expected regardless of sending order  ✓ should forward scopes as expected  Process API with IIPs and scopes  ✓ should forward scopes as expected  Process API with IIPs to addressable ports and scopes  ✓ should forward scopes as expected  NoFlo Graph component  initially  ✓ should be ready  ✓ should not contain a network  ✓ should have a baseDir  ✓ should only have the graph inport  with JSON graph definition  ✓ should emit a ready event after network has been loaded  ✓ should expose available ports  ✓ should update description from the graph  ✓ should expose only exported ports when they exist  ✓ should be able to run the graph  with a Graph instance  ✓ should emit a ready event after network has been loaded  ✓ should expose available ports  ✓ should be able to run the graph  with a FBP file with INPORTs and OUTPORTs  ✓ should emit a ready event after network has been loaded  ✓ should expose available ports (57ms)  ✓ should be able to run the graph (49ms)  with a FBP file with legacy EXPORTS fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead  ✓ should emit a ready event after network has been loaded (57ms) fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead  ✓ should expose available ports (53ms) fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead  ✓ should have disambiguated the exported ports (49ms) fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead fbp-graph.Graph exports is deprecated: please use specific inport or outport instead  ✓ should be able to run the graph (53ms)  when a subgraph is used as a component  ✓ should send defaults  ✓ should send initials  ✓ should not send defaults when an inport is attached externally   373 passing (9s)   22 pending