Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 11, 2024
1 parent facd1b9 commit 6077dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ test.describe( 'Image Block', () => {
] );

const sources = blocks[ 0 ].attributes.enableResponsiveImageSources;
expect( sources[ 0 ].srcset.includes( firstSourceFilename ) ).toBe( true );
expect( sources[ 1 ].srcset.includes( secondSourceFilename ) ).toBe( true );
expect( sources?.[ 0 ].srcset.includes( firstSourceFilename ) ).toBe( true );
expect( sources?.[ 1 ].srcset.includes( secondSourceFilename ) ).toBe( true );
} );
} );

Expand Down

0 comments on commit 6077dbb

Please sign in to comment.