From 6020c68d9e26b0692ef022870f3c9de952edd6ce Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 9 Aug 2018 13:57:56 +0800 Subject: [PATCH] Fix incorrect state used in test --- edit-post/store/test/selectors.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/edit-post/store/test/selectors.js b/edit-post/store/test/selectors.js index ce99e88fdeca8..7fce2ef771681 100644 --- a/edit-post/store/test/selectors.js +++ b/edit-post/store/test/selectors.js @@ -145,9 +145,7 @@ describe( 'selectors', () => { it( 'returns false if the preferences activeModal property is null', () => { const state = { - preferences: { - activeModal: null, - }, + activeModal: null, }; expect( isModalActive( state, 'test-modal' ) ).toBe( false );