Skip to content

Commit

Permalink
Fixed order of mocking to make the test work
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoMyst committed Aug 17, 2015
1 parent 2c6f587 commit f5e6909
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ describe('native-builder', function () {
warnOnReplace: false,
warnOnUnregistered: false
});

this.originalPlatform = process.platform;
Object.defineProperty(process, 'platform', {
value: 'win32'
});
});

after(function () {
Expand All @@ -53,6 +48,11 @@ describe('native-builder', function () {
var electronSetup = 'SET USERPROFILE=%USERPROFILE%\\.electron-gyp&& ';
var distUrl = ' --dist-url=https://atom.io/download/atom-shell';

this.originalPlatform = process.platform;
Object.defineProperty(process, 'platform', {
value: 'win32'
});

return assert.eventually.equal(nativeBuilder.resolve(), electronSetup.concat(builder, ' rebuild --target=0.30.1', distUrl));
});
});
Expand Down

0 comments on commit f5e6909

Please sign in to comment.