From 6077dbb588c8dfbc92bbc3a34daa73266b91e70d Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Sat, 12 Oct 2024 00:44:24 +0900 Subject: [PATCH] Fix type error --- test/e2e/test.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/test.spec.ts b/test/e2e/test.spec.ts index 5ac9133..da84d62 100644 --- a/test/e2e/test.spec.ts +++ b/test/e2e/test.spec.ts @@ -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 ); } ); } );