Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create Flummox actions from plain JavaScript objects
const flux = new Flux();
flux.createActions('foobar', {
foo() {
return 'bar';
},
bar() {
return 'baz';
}
});
expect(flux.getActions('foobar')).to.be.an.instanceof(Actions);
expect(flux.getActions('foobar').foo()).to.equal('bar');
expect(flux.getActions('foobar').bar()).to.equal('baz');
@acdlite

This comment has been minimized.

Copy link
Owner Author

@acdlite acdlite commented Apr 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment