From a20a9df33682f481631b3fdee50db1adb39032c3 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 26 Dec 2023 13:27:29 +0100 Subject: [PATCH] fixup! Check theme.json validity --- test/integration/theme-schema.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/theme-schema.test.js b/test/integration/theme-schema.test.js index a440a4a4cdb8f..ccd302facf556 100644 --- a/test/integration/theme-schema.test.js +++ b/test/integration/theme-schema.test.js @@ -36,11 +36,11 @@ describe( 'theme.json schema', () => { test.each( jsonFiles )( 'validates schema for `%s`', ( filepath ) => { // We want to validate the block.json file using the local schema. - const { $schema, ...blockMetadata } = require( filepath ); + const { $schema, ...metadata } = require( filepath ); expect( $schema ).toBe( 'https://schemas.wp.org/trunk/theme.json' ); - const result = ajv.validate( themeSchema, blockMetadata ) || ajv.errors; + const result = ajv.validate( themeSchema, metadata ) || ajv.errors; expect( result ).toBe( true ); } );