Fix regression where config file was loaded in specs

This commit is contained in:
Max Brunsfeld
2018-03-09 11:15:50 -08:00
parent 68b21364b4
commit a9fa57139a

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
})