Skip to content

Commit

Permalink
Update deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed May 21, 2021
1 parent 3d0e46f commit a19b9a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe( 'EditWithSelect', () => {
} );

it( 'set the correct arguments when the block is the "Hand-picked posts"', () => {
const lodash = require.requireActual( 'lodash' );
const lodash = jest.requireActual( 'lodash' );
jest.spyOn( lodash, 'pickBy' ).mockImplementation( () => 1 );

const props = {
Expand All @@ -186,7 +186,7 @@ describe( 'EditWithSelect', () => {
} );

it( 'set the correct arguments when the block is the "Hand-picked posts" and title ordering', () => {
const lodash = require.requireActual( 'lodash' );
const lodash = jest.requireActual( 'lodash' );
jest.spyOn( lodash, 'pickBy' ).mockImplementation( () => 1 );

const props = {
Expand All @@ -212,7 +212,7 @@ describe( 'EditWithSelect', () => {
} );

it( 'set the correct arguments when the block is the "Hand-picked posts" and popularity ordering', () => {
const lodash = require.requireActual( 'lodash' );
const lodash = jest.requireActual( 'lodash' );
jest.spyOn( lodash, 'pickBy' ).mockImplementation( () => 1 );

const props = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe( 'EditWithSelect', () => {
} );

it( 'set the correct arguments when the block is the "Hand-picked posts"', () => {
const lodash = require.requireActual( 'lodash' );
const lodash = jest.requireActual( 'lodash' );
jest.spyOn( lodash, 'pickBy' ).mockImplementation( () => 1 );

const props = {
Expand All @@ -188,7 +188,7 @@ describe( 'EditWithSelect', () => {
} );

it( 'set the correct arguments when the block is the "Hand-picked posts" and title ordering', () => {
const lodash = require.requireActual( 'lodash' );
const lodash = jest.requireActual( 'lodash' );
jest.spyOn( lodash, 'pickBy' ).mockImplementation( () => 1 );

const props = {
Expand All @@ -214,7 +214,7 @@ describe( 'EditWithSelect', () => {
} );

it( 'set the correct arguments when the block is the "Hand-picked posts" and popularity ordering', () => {
const lodash = require.requireActual( 'lodash' );
const lodash = jest.requireActual( 'lodash' );
jest.spyOn( lodash, 'pickBy' ).mockImplementation( () => 1 );

const props = {
Expand Down

0 comments on commit a19b9a0

Please sign in to comment.