Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 22, 2018
1 parent 9f90603 commit 982b2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-data/src/test/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe( 'saveEntityRecord', () => {
} );
// Provide response and trigger action
const { value: received } = fulfillment.next( { ...post, id: 10 } );
expect( received ).toEqual( receiveEntityRecords( 'postType', 'post', { ...post, id: 10 } ) );
expect( received ).toEqual( receiveEntityRecords( 'postType', 'post', { ...post, id: 10 }, undefined, true ) );
} );

it( 'triggers a PUT request for an existing record', async () => {
Expand All @@ -37,6 +37,6 @@ describe( 'saveEntityRecord', () => {
} );
// Provide response and trigger action
const { value: received } = fulfillment.next( post );
expect( received ).toEqual( receiveEntityRecords( 'postType', 'post', post ) );
expect( received ).toEqual( receiveEntityRecords( 'postType', 'post', post, undefined, true ) );
} );
} );

0 comments on commit 982b2f1

Please sign in to comment.