Fix tests

This commit is contained in:
Antonio Scandurra 2017-03-17 17:04:11 +01:00
parent 7ca204dc4b
commit 934c377af6
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -106,6 +106,7 @@ module.exports = class Workspace extends Model {
this.openers = []
this.destroyedItemURIs = []
this.consumeServices(this.packageManager)
this.initialize()
}
subscribeToEvents () {