Skip to content

Commit

Permalink
Edit Post: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Nov 18, 2020
1 parent adf3472 commit dfec26b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions packages/edit-post/src/store/test/actions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* WordPress dependencies
*/
import { controls } from '@wordpress/data';

/**
* Internal dependencies
*/
Expand Down Expand Up @@ -95,9 +100,17 @@ describe( 'actions', () => {
} );

describe( 'requestMetaBoxUpdates', () => {
it( 'should return the REQUEST_META_BOX_UPDATES action', () => {
expect( requestMetaBoxUpdates() ).toEqual( {
type: 'REQUEST_META_BOX_UPDATES',
it( 'should yield the REQUEST_META_BOX_UPDATES action', () => {
const fulfillment = requestMetaBoxUpdates();
expect( fulfillment.next() ).toEqual( {
done: false,
value: {
type: 'REQUEST_META_BOX_UPDATES',
},
} );
expect( fulfillment.next() ).toEqual( {
done: false,
value: controls.select( 'core/editor', 'getCurrentPost' ),
} );
} );
} );
Expand Down

0 comments on commit dfec26b

Please sign in to comment.