Merge pull request #16922 from atom/mb-dont-load-config-settings-in-tests

Fix regression where config file was loaded in specs
This commit is contained in:
Max Brunsfeld
2018-03-09 12:47:20 -08:00
committed by GitHub

View File

@@ -57,7 +57,9 @@ class AtomWindow extends EventEmitter {
Object.defineProperty(this.browserWindow, 'loadSettingsJSON', {
get: () => JSON.stringify(Object.assign({
userSettings: this.atomApplication.configFile.get()
userSettings: !this.isSpec
? this.atomApplication.configFile.get()
: null
}, this.loadSettings)),
configurable: true
})