Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jan 3, 2025
1 parent 016f36f commit 13e9133
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ export default function FiltersPanel( {
const duotoneValue = duotonePreset
? `var:preset|duotone|${ duotonePreset.slug }`
: newValue;
onChange( setImmutably( value, [ 'filter', 'duotone' ], duotoneValue ) );
onChange(
setImmutably( value, [ 'filter', 'duotone' ], duotoneValue )
);
};
const hasDuotone = () => !! value?.filter?.duotone;
const resetDuotone = () => setDuotone( undefined );
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/audio/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ describe( `${ block } block transformations`, () => {
const screen = await initializeEditor( { initialHtml } );
const newBlock = await transformBlock( screen, block, blockTransform, {
isMediaBlock: false,
hasInnerBlocks: transformsWithInnerBlocks.includes( blockTransform ),
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
} );
expect( newBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
Expand Down
8 changes: 6 additions & 2 deletions packages/block-library/src/cover/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ describe( `${ block } block transformations`, () => {
{
isMediaBlock: true,
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
transformsWithInnerBlocks.includes(
blockTransform
),
}
);
expect( newBlock ).toBeVisible();
Expand Down Expand Up @@ -88,7 +90,9 @@ describe( `${ block } block transformations`, () => {
{
isMediaBlock: true,
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
transformsWithInnerBlocks.includes(
blockTransform
),
}
);
expect( newBlock ).toBeVisible();
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/file/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ describe( `${ block } block transformations`, () => {
const screen = await initializeEditor( { initialHtml } );
const newBlock = await transformBlock( screen, block, blockTransform, {
isMediaBlock: false,
hasInnerBlocks: transformsWithInnerBlocks.includes( blockTransform ),
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
} );
expect( newBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/gallery/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ describe( `${ block } block transformations`, () => {
const screen = await initializeEditor( { initialHtml } );
const newBlock = await transformBlock( screen, block, blockTransform, {
isMediaBlock: true,
hasInnerBlocks: transformsWithInnerBlocks.includes( blockTransform ),
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
} );
expect( newBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
Expand Down
9 changes: 8 additions & 1 deletion packages/block-library/src/image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
"name": "core/image",
"title": "Image",
"category": "media",
"usesContext": [ "allowResize", "imageCrop", "fixedHeight", "postId", "postType", "queryId" ],
"usesContext": [
"allowResize",
"imageCrop",
"fixedHeight",
"postId",
"postType",
"queryId"
],
"description": "Insert an image to make a visual statement.",
"keywords": [ "img", "photo", "picture" ],
"textdomain": "default",
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/image/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ describe( `${ block } block transformations`, () => {
const screen = await initializeEditor( { initialHtml } );
const newBlock = await transformBlock( screen, block, blockTransform, {
isMediaBlock: ! nonMediaTransforms.includes( blockTransform ),
hasInnerBlocks: transformsWithInnerBlocks.includes( blockTransform ),
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
} );
expect( newBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ describe( `${ block } block transformations`, () => {
{
isMediaBlock: true,
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
transformsWithInnerBlocks.includes(
blockTransform
),
}
);
expect( newBlock ).toBeVisible();
Expand Down Expand Up @@ -88,7 +90,9 @@ describe( `${ block } block transformations`, () => {
{
isMediaBlock: true,
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
transformsWithInnerBlocks.includes(
blockTransform
),
}
);
expect( newBlock ).toBeVisible();
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@
},
"style": "wp-block-post-content",
"editorStyle": "wp-block-post-content-editor"
}
}
3 changes: 2 additions & 1 deletion packages/block-library/src/video/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ describe( `${ block } block transforms`, () => {
const screen = await initializeEditor( { initialHtml } );
const newBlock = await transformBlock( screen, block, blockTransform, {
isMediaBlock: ! nonMediaTransforms.includes( blockTransform ),
hasInnerBlocks: transformsWithInnerBlocks.includes( blockTransform ),
hasInnerBlocks:
transformsWithInnerBlocks.includes( blockTransform ),
} );
expect( newBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/modal/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ describe( 'Modal', () => {
const [ isAShown, setIsAShown ] = useState( false );
const [ isA1Shown, setIsA1Shown ] = useState( false );
const [ isBShown, setIsBShown ] = useState( false );
const [ isClassOverridden, setIsClassOverridden ] = useState( false );
const [ isClassOverridden, setIsClassOverridden ] =
useState( false );
useEffect( () => {
const toggles: ( e: KeyboardEvent ) => void = ( {
key,
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/specs/editor/various/datepicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ TIMEZONES.forEach( ( timezone ) => {
test.describe( `Datepicker: ${ timezone }`, () => {
let originalTimezone;
test.beforeAll( async ( { requestUtils } ) => {
originalTimezone = ( await requestUtils.getSiteSettings() ).timezone;
originalTimezone = ( await requestUtils.getSiteSettings() )
.timezone;
await requestUtils.updateSiteSettings( { timezone } );
} );

Expand Down

0 comments on commit 13e9133

Please sign in to comment.