Skip to content

Commit 982b2f1

Browse files
committed
Fix unit tests
1 parent 9f90603 commit 982b2f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core-data/src/test/actions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe( 'saveEntityRecord', () => {
1919
} );
2020
// Provide response and trigger action
2121
const { value: received } = fulfillment.next( { ...post, id: 10 } );
22-
expect( received ).toEqual( receiveEntityRecords( 'postType', 'post', { ...post, id: 10 } ) );
22+
expect( received ).toEqual( receiveEntityRecords( 'postType', 'post', { ...post, id: 10 }, undefined, true ) );
2323
} );
2424

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

0 commit comments

Comments
 (0)