-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f3812b
commit d6adc0e
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
test/unit/state/middleware/dimension-marshal-stopper.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// @flow | ||
import middleware from '../../../../src/state/middleware/dimension-marshal-stopper'; | ||
|
||
it('should stop a collection if a drag is aborted', () => { | ||
const mock = jest.fn(); | ||
const getMarshal = () => ({ | ||
stopPublishing: mock, | ||
}); | ||
|
||
const store: Store = createStore( | ||
middleware(getMarshal), | ||
); | ||
}); | ||
|
||
it('should stop a collection if a drag is dropped', () => { | ||
|
||
}); | ||
|
||
it('should stop a collection if a drop is pending', () => { | ||
|
||
}); | ||
|
||
it('should stop a collection if a drop does not need to animate and moves straight to complete', () => { | ||
|
||
}); |