mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 09:29:48 +01:00
Build/Test Tools: Fix tests after [50199].
This removes a test assertion defending against version ranges in the node value in package.json files. This is now supported. Props peterwilsoncc. Merges [50192] to the 5.1 branch. See #52341. git-svn-id: https://develop.svn.wordpress.org/branches/5.1@50200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a4a61a5ac
commit
bfd7809bb8
@ -35,8 +35,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user