mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add failing spec
This commit is contained in:
@@ -433,6 +433,13 @@ describe "PackageManager", ->
|
||||
runs ->
|
||||
expect(atom.keymaps.findKeyBindings(keystrokes: 'ctrl-z', target: element1)).toHaveLength 0
|
||||
|
||||
describe "when setting core.packagesWithKeymapsDisabled", ->
|
||||
it "ignores package names in the array that aren't loaded", ->
|
||||
atom.packages.observePackagesWithKeymapsDisabled()
|
||||
|
||||
expect(-> atom.config.set("core.packagesWithKeymapsDisabled", ["package-does-not-exist"])).not.toThrow()
|
||||
expect(-> atom.config.set("core.packagesWithKeymapsDisabled", [])).not.toThrow()
|
||||
|
||||
describe "when the package's keymaps are disabled and re-enabled after it is activated", ->
|
||||
it "removes and re-adds the keymaps", ->
|
||||
element1 = createTestElement('test-1')
|
||||
|
||||
Reference in New Issue
Block a user