From 606262039b0460546b33b3619be19b706f3c04e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ka=CC=88gy?= Date: Thu, 2 May 2024 10:45:27 +0200 Subject: [PATCH] fix test case to only ensure that a `$schema` value exists --- test/integration/theme-schema.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/theme-schema.test.js b/test/integration/theme-schema.test.js index ccd302facf556f..df6ee29fbec1ec 100644 --- a/test/integration/theme-schema.test.js +++ b/test/integration/theme-schema.test.js @@ -35,10 +35,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. + // We want to validate the theme.json file using the local schema. const { $schema, ...metadata } = require( filepath ); - expect( $schema ).toBe( 'https://schemas.wp.org/trunk/theme.json' ); + // we expect the $schema property to be present in the theme.json file + expect( $schema ).toBeTruthy(); const result = ajv.validate( themeSchema, metadata ) || ajv.errors;