mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Fix specs to deal w/ async ServiceHub::consume
This commit is contained in:
parent
efe0fbe0ea
commit
d9aa95fb11
@ -106,8 +106,8 @@ describe "Project", ->
|
||||
atom.packages.serviceHub.provide(
|
||||
"atom.repository-provider", "0.1.0", repositoryProvider)
|
||||
|
||||
expect(atom.project.repositoryProviders.length).toBe 2
|
||||
expect(atom.project.getRepositories()).toEqual [dummyRepository]
|
||||
waitsFor -> atom.project.repositoryProviders.length is 2
|
||||
runs -> expect(atom.project.getRepositories()).toEqual [dummyRepository]
|
||||
|
||||
it "does not update @repositories if every path has a Repository", ->
|
||||
repositories = atom.project.getRepositories()
|
||||
|
@ -15,6 +15,7 @@ describe "Workspace", ->
|
||||
beforeEach ->
|
||||
atom.project.setPaths([atom.project.getDirectories()[0]?.resolve('dir')])
|
||||
atom.workspace = workspace = new Workspace
|
||||
waits(1)
|
||||
|
||||
describe "::open(uri, options)", ->
|
||||
openEvents = null
|
||||
|
Loading…
Reference in New Issue
Block a user