mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
Stub the storage folder application.json read
This commit is contained in:
parent
1a48b987ca
commit
e35510e928
@ -640,6 +640,11 @@ class LaunchScenario {
|
||||
...options
|
||||
})
|
||||
this.sinon.stub(app, 'createWindow', loadSettings => new StubWindow(this.sinon, loadSettings, options))
|
||||
this.sinon.stub(app.storageFolder, 'load', () => Promise.resolve(
|
||||
(options.applicationJson || []).map(each => ({
|
||||
initialPaths: this.convertPaths(each.initialPaths)
|
||||
}))
|
||||
))
|
||||
this.applications.add(app)
|
||||
return app
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user