Make WordPress Core

Changeset 50193


Ignore:
Timestamp:
02/05/2021 03:38:58 AM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Fix tests after [50186].

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.6 branch.
See #52341.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/tests/phpunit/tests/basic.php

    r48937 r50193  
    4747        $this->assertArrayHasKey( 'engines', $package_json );
    4848        $this->assertArrayHasKey( 'node', $package_json['engines'] );
    49         $node = $package_json['engines']['node'];
    50         $this->assertRegExp( '~^=?\d+\.\d+\.\d+$~', $node, "package.json's node version cannot be a range." );
    5149    }
    5250
Note: See TracChangeset for help on using the changeset viewer.