File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
plugin/tests/js/block-editor/blocks/common-posts-list Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ describe( 'EditWithSelect', () => {
164164 } ) ;
165165
166166 it ( 'set the correct arguments when the block is the "Hand-picked posts"' , ( ) => {
167- const lodash = require . requireActual ( 'lodash' ) ;
167+ const lodash = jest . requireActual ( 'lodash' ) ;
168168 jest . spyOn ( lodash , 'pickBy' ) . mockImplementation ( ( ) => 1 ) ;
169169
170170 const props = {
@@ -186,7 +186,7 @@ describe( 'EditWithSelect', () => {
186186 } ) ;
187187
188188 it ( 'set the correct arguments when the block is the "Hand-picked posts" and title ordering' , ( ) => {
189- const lodash = require . requireActual ( 'lodash' ) ;
189+ const lodash = jest . requireActual ( 'lodash' ) ;
190190 jest . spyOn ( lodash , 'pickBy' ) . mockImplementation ( ( ) => 1 ) ;
191191
192192 const props = {
@@ -212,7 +212,7 @@ describe( 'EditWithSelect', () => {
212212 } ) ;
213213
214214 it ( 'set the correct arguments when the block is the "Hand-picked posts" and popularity ordering' , ( ) => {
215- const lodash = require . requireActual ( 'lodash' ) ;
215+ const lodash = jest . requireActual ( 'lodash' ) ;
216216 jest . spyOn ( lodash , 'pickBy' ) . mockImplementation ( ( ) => 1 ) ;
217217
218218 const props = {
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ describe( 'EditWithSelect', () => {
166166 } ) ;
167167
168168 it ( 'set the correct arguments when the block is the "Hand-picked posts"' , ( ) => {
169- const lodash = require . requireActual ( 'lodash' ) ;
169+ const lodash = jest . requireActual ( 'lodash' ) ;
170170 jest . spyOn ( lodash , 'pickBy' ) . mockImplementation ( ( ) => 1 ) ;
171171
172172 const props = {
@@ -188,7 +188,7 @@ describe( 'EditWithSelect', () => {
188188 } ) ;
189189
190190 it ( 'set the correct arguments when the block is the "Hand-picked posts" and title ordering' , ( ) => {
191- const lodash = require . requireActual ( 'lodash' ) ;
191+ const lodash = jest . requireActual ( 'lodash' ) ;
192192 jest . spyOn ( lodash , 'pickBy' ) . mockImplementation ( ( ) => 1 ) ;
193193
194194 const props = {
@@ -214,7 +214,7 @@ describe( 'EditWithSelect', () => {
214214 } ) ;
215215
216216 it ( 'set the correct arguments when the block is the "Hand-picked posts" and popularity ordering' , ( ) => {
217- const lodash = require . requireActual ( 'lodash' ) ;
217+ const lodash = jest . requireActual ( 'lodash' ) ;
218218 jest . spyOn ( lodash , 'pickBy' ) . mockImplementation ( ( ) => 1 ) ;
219219
220220 const props = {
You can’t perform that action at this time.
0 commit comments