mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-20 21:35:42 +02:00
21 lines
840 B
JavaScript
21 lines
840 B
JavaScript
var GlobalStateActions = require('../src/js/actions/GlobalStateActions');
|
|
var GlobalStateStore = require('../src/js/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);
|
|
});
|
|
|
|
it('can change flip treey', function() {
|
|
expect(GlobalStateStore.getFlipTreeY()).toEqual(false);
|
|
GlobalStateActions.changeFlipTreeY(true);
|
|
expect(GlobalStateStore.getFlipTreeY()).toEqual(true);
|
|
GlobalStateActions.changeFlipTreeY(false);
|
|
expect(GlobalStateStore.getFlipTreeY()).toEqual(false);
|
|
});
|
|
|
|
});
|