mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-29 23:03:04 +07:00
13 lines
388 B
JavaScript
13 lines
388 B
JavaScript
|
munit( 'Root.version', { priority: munit.PRIORITY_LOW }, function( assert ) {
|
||
|
argv.clear();
|
||
|
if ( argv.options.version ) {
|
||
|
delete argv.options.version;
|
||
|
}
|
||
|
|
||
|
assert.empty( 'Version Start', argv.options.version );
|
||
|
argv.version( "1.2.4" );
|
||
|
assert.exists( 'Version Option', argv.options.version );
|
||
|
argv.clear();
|
||
|
assert.exists( 'Version Option after Clear', argv.options.version );
|
||
|
});
|