Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change platform win32 faking due to process.platform becoming read-on…

…ly since node v0.11.10 .
  • Loading branch information...
commit 74eb146e52dacc2a8130398af641aa4f7490f4f5 1 parent a62877b
@cliffano authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/cli.js
View
3  test/cli.js
@@ -119,7 +119,8 @@ buster.testCase('cli - _exec', {
cli.exec();
},
'should use win32 command when executed on windows': function () {
- this.stub(process, 'platform', 'win32');
+ //this.stub(process, 'platform', 'win32');
+ process.platform = 'win32';
this.stub(bag, 'command', function (base, actions) {
actions.commands.exec.action({ _name: 'init', parent: {} });
});
Please sign in to comment.
Something went wrong with that request. Please try again.