Skip to content

Commit

Permalink
Remove jest advance timers
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Mar 12, 2023
1 parent 717f18b commit d9e798f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/test/block-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import CoverBlockControls from '../edit/block-controls';

function setup( jsx ) {
return {
user: userEvent.setup( { advanceTimers: jest.advanceTimersByTime } ),
user: userEvent.setup(),
...render( jsx ),
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/cover/test/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import metadata from '../block.json';

function setup( jsx ) {
return {
user: userEvent.setup( { advanceTimers: jest.advanceTimersByTime } ),
user: userEvent.setup(),
...render( jsx ),
};
}
Expand Down Expand Up @@ -117,7 +117,7 @@ describe( 'Cover edit', () => {
} )
);

expect( setOverlayColor ).toHaveBeenCalledWith( '#000000' );
expect( setOverlayColor ).toHaveBeenCalledWith( '#000000', 0 );
} );
} );
} );
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import CoverInspectorControls from '../edit/inspector-controls';

function setup( jsx ) {
return {
user: userEvent.setup( { advanceTimers: jest.advanceTimersByTime } ),
user: userEvent.setup(),
...render( jsx ),
};
}
Expand Down

0 comments on commit d9e798f

Please sign in to comment.