Skip to content

Commit

Permalink
Lodash: Remove from integration tests (#48122)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored Feb 21, 2023
1 parent 08f65dc commit 54e61e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/integration/full-content/full-content.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import glob from 'fast-glob';
import { get } from 'lodash';
import { format } from 'util';

/**
Expand Down Expand Up @@ -252,11 +251,8 @@ describe( 'full post content fixture', () => {
JSON.parse( jsonFixtureContent );
// The name of the first block that this fixture file
// contains (if any).
const firstBlock = get(
parserOutput,
[ '0', 'name' ],
null
);
const firstBlock =
parserOutput?.[ '0' ]?.name ?? null;
return {
filename: htmlFixtureFileName,
parserOutput,
Expand Down

1 comment on commit 54e61e8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 54e61e8.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4230341601
📝 Reported issues:

Please sign in to comment.