From 5c48f1510f0b794235e6153629b9a705d8e1d0f5 Mon Sep 17 00:00:00 2001 From: Jorge Date: Tue, 16 Apr 2019 14:36:07 +0100 Subject: [PATCH] Fix: replaceInnerBlocks reducer tests tested properties not related with the replace functionality. --- packages/block-editor/src/store/test/reducer.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/block-editor/src/store/test/reducer.js b/packages/block-editor/src/store/test/reducer.js index fe63fc34cd65b1..b39698d5660335 100644 --- a/packages/block-editor/src/store/test/reducer.js +++ b/packages/block-editor/src/store/test/reducer.js @@ -232,9 +232,7 @@ describe( 'state', () => { const state = blocks( existingState, action ); - expect( state ).toEqual( { - isPersistentChange: true, - isIgnoredChange: false, + expect( state ).toMatchObject( { byClientId: { clicken: { clientId: 'chicken', @@ -295,9 +293,7 @@ describe( 'state', () => { const state = blocks( existingState, action ); - expect( state ).toEqual( { - isPersistentChange: true, - isIgnoredChange: false, + expect( state ).toMatchObject( { byClientId: { clicken: { clientId: 'chicken', @@ -387,9 +383,7 @@ describe( 'state', () => { const state = blocks( existingState, action ); - expect( state ).toEqual( { - isPersistentChange: true, - isIgnoredChange: false, + expect( state ).toMatchObject( { byClientId: { clicken: { clientId: 'chicken', @@ -480,9 +474,7 @@ describe( 'state', () => { const state = blocks( existingState, action ); - expect( state ).toEqual( { - isPersistentChange: true, - isIgnoredChange: false, + expect( state ).toMatchObject( { byClientId: { clicken: { clientId: 'chicken',