mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-04 01:54:44 +02:00
global state store
This commit is contained in:
parent
8493b51ec2
commit
e03bdc619f
5 changed files with 95 additions and 12 deletions
13
src/js/__tests__/GlobalStateStore.spec.js
Normal file
13
src/js/__tests__/GlobalStateStore.spec.js
Normal 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);
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue