Skip to content

Commit

Permalink
Update unit test to take into account the call to saveEditedEntityRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 8, 2021
1 parent 98dc6a0 commit 2f53f2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/edit-navigation/src/store/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ describe( 'saveNavigationPost', () => {
);

expect( action.next( mapping ).value ).toEqual(
dispatch( 'core', 'saveEditedEntityRecord', 'root', 'menu', 1 )
);

expect( action.next( { id: 1 } ).value ).toEqual(
apiFetch( {
path: '/__experimental/customizer-nonces/get-save-nonce',
} )
Expand Down Expand Up @@ -454,6 +458,10 @@ describe( 'saveNavigationPost', () => {
);

expect( action.next( mapping ).value ).toEqual(
dispatch( 'core', 'saveEditedEntityRecord', 'root', 'menu', 1 )
);

expect( action.next().value ).toEqual(
apiFetch( {
path: '/__experimental/customizer-nonces/get-save-nonce',
} )
Expand Down

0 comments on commit 2f53f2f

Please sign in to comment.