mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-03 09:35:45 +02:00
Move tests to the root
This commit is contained in:
parent
5d46a6ecd2
commit
e068203893
16 changed files with 25 additions and 37 deletions
21
__tests__/GlobalStateStore.spec.js
Normal file
21
__tests__/GlobalStateStore.spec.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue