Skip to content

Commit

Permalink
Fix redux-routine unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Aug 7, 2018
1 parent c1f1c35 commit 421c3a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/redux-routine/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wordpress/redux-routine",
"version": "1.0.0",
"description": "Redux middleware for generator coroutines",
"description": "Redux middleware for generator coroutines.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-routine/src/is-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
export default function isGenerator( object ) {
return (
object &&
!! object &&
object[ Symbol.toStringTag ] === 'Generator'
);
}
2 changes: 0 additions & 2 deletions packages/redux-routine/src/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ describe( 'createMiddleware', () => {
expect( store.getState() ).toBe( null );

jest.runAllTimers();
expect( store.getState() ).toBe( null );

// Promise resolution occurs on next tick.
process.nextTick( () => {
Expand Down Expand Up @@ -135,7 +134,6 @@ describe( 'createMiddleware', () => {
expect( store.getState() ).toBe( null );

jest.runAllTimers();
expect( store.getState() ).toBe( null );

process.nextTick( () => {
expect( store.getState() ).toBe( 2 );
Expand Down

0 comments on commit 421c3a6

Please sign in to comment.