MCPcopy Create free account
hub / github.com/jakesgordon/javascript-state-machine / plugin

Function plugin

test/plugins.js:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26test('an empty plugin function', t => {
27
28 var plugin = function() {
29 return {
30 init: function(instance) {
31 instance.plugged = true
32 }
33 }
34 };
35
36 var fsm = new StateMachine({
37 plugins: [ plugin ]

Callers 2

state-machine.jsFile · 0.85
config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected