global state store

This commit is contained in:
Peter Cottle 2015-03-28 14:11:47 -07:00
parent 8493b51ec2
commit e03bdc619f
5 changed files with 95 additions and 12 deletions

View file

@ -0,0 +1,13 @@
var GlobalStateActions = require('../actions/GlobalStateActions');
var GlobalStateStore = require('../stores/GlobalStateStore');
describe('this store', function() {
it('is can change animating', function() {
expect(GlobalStateStore.getIsAnimating()).toEqual(false);
GlobalStateActions.changeIsAnimating(true);
expect(GlobalStateStore.getIsAnimating()).toEqual(true);
GlobalStateActions.changeIsAnimating(false);
expect(GlobalStateStore.getIsAnimating()).toEqual(false);
});
});