mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Fix another two tests
This commit is contained in:
parent
af66c5efaa
commit
468f4a47a9
@ -1375,6 +1375,7 @@ describe "PackageManager", ->
|
|||||||
atom.themes.activateThemes()
|
atom.themes.activateThemes()
|
||||||
|
|
||||||
afterEach ->
|
afterEach ->
|
||||||
|
waitsForPromise ->
|
||||||
atom.themes.deactivateThemes()
|
atom.themes.deactivateThemes()
|
||||||
|
|
||||||
it "enables and disables a theme", ->
|
it "enables and disables a theme", ->
|
||||||
|
@ -262,10 +262,8 @@ class ThemeManager
|
|||||||
new Promise (resolve) =>
|
new Promise (resolve) =>
|
||||||
# @config.observe runs the callback once, then on subsequent changes.
|
# @config.observe runs the callback once, then on subsequent changes.
|
||||||
@config.observe 'core.themes', =>
|
@config.observe 'core.themes', =>
|
||||||
@deactivateThemes()
|
@deactivateThemes().then =>
|
||||||
|
|
||||||
@warnForNonExistentThemes()
|
@warnForNonExistentThemes()
|
||||||
|
|
||||||
@refreshLessCache() # Update cache for packages in core.themes config
|
@refreshLessCache() # Update cache for packages in core.themes config
|
||||||
|
|
||||||
promises = []
|
promises = []
|
||||||
|
Loading…
Reference in New Issue
Block a user