Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Update to Electron v0.33.x #8779

Merged
merged 14 commits into from
Oct 16, 2015
Prev Previous commit
Next Next commit
Mock process.cwd to make test pass in headless mode
  • Loading branch information
Nathan Sobo committed Oct 16, 2015
commit eb2a6a3388bcaeb536730b520197b3db89aaa34a
1 change: 1 addition & 0 deletions spec/module-cache-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ describe 'ModuleCache', ->
exports.load = function() { require('underscore-plus'); };
"""

spyOn(process, 'cwd').andReturn('/') # Required when running this test from CLI
packageMain = require(indexPath)
Module._findPath.reset()
expect(-> packageMain.load()).toThrow()
Expand Down