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');