mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Fix tests
This commit is contained in:
parent
7ca204dc4b
commit
934c377af6
@ -43,7 +43,7 @@ describe("HistoryManager", () => {
|
||||
it("registers the 'clear-project-history' command function", () => {
|
||||
expect(commandRegistry.add).toHaveBeenCalled()
|
||||
const cmdCall = commandRegistry.add.calls[0]
|
||||
expect(cmdCall.args.length).toBe(2)
|
||||
expect(cmdCall.args.length).toBe(3)
|
||||
expect(cmdCall.args[0]).toBe('atom-workspace')
|
||||
expect(typeof cmdCall.args[1]['application:clear-project-history']).toBe('function')
|
||||
})
|
||||
|
@ -106,6 +106,7 @@ module.exports = class Workspace extends Model {
|
||||
this.openers = []
|
||||
this.destroyedItemURIs = []
|
||||
this.consumeServices(this.packageManager)
|
||||
this.initialize()
|
||||
}
|
||||
|
||||
subscribeToEvents () {
|
||||
|
Loading…
Reference in New Issue
Block a user