From 5629865595014334495a5a743015ace1626c21e0 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 5 Feb 2021 03:36:26 +0000 Subject: [PATCH] Build/Test Tools: Fix tests after [50185]. This removes a test assertion defending against version ranges in the `node` value in `package.json` files. This is now supported. Props peterwilsoncc. See #52341. git-svn-id: https://develop.svn.wordpress.org/trunk@50192 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/basic.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/phpunit/tests/basic.php b/tests/phpunit/tests/basic.php index 6941c91e44..47b807d241 100644 --- a/tests/phpunit/tests/basic.php +++ b/tests/phpunit/tests/basic.php @@ -46,8 +46,6 @@ class Tests_Basic extends WP_UnitTestCase { function test_package_json_node_engine( $package_json ) { $this->assertArrayHasKey( 'engines', $package_json ); $this->assertArrayHasKey( 'node', $package_json['engines'] ); - $node = $package_json['engines']['node']; - $this->assertRegExp( '~^=?\d+\.\d+\.\d+$~', $node, "package.json's node version cannot be a range." ); } // Test some helper utility functions.