gdefault option set test
This commit is contained in:
parent
964813a0b0
commit
1a515fcb05
1 changed files with 8 additions and 0 deletions
|
|
@ -944,6 +944,14 @@ describe "the commands", ->
|
||||||
submitNormalModeInputText(':set nosmartcase')
|
submitNormalModeInputText(':set nosmartcase')
|
||||||
expect(atom.config.get('vim-mode.useSmartcaseForSearch')).toBe(false)
|
expect(atom.config.get('vim-mode.useSmartcaseForSearch')).toBe(false)
|
||||||
|
|
||||||
|
it "sets (no)gdefault", ->
|
||||||
|
openEx()
|
||||||
|
submitNormalModeInputText(':set gdefault')
|
||||||
|
expect(atom.config.get('ex-mode.gdefault')).toBe(true)
|
||||||
|
atom.commands.dispatch(editorElement, 'ex-mode:open')
|
||||||
|
submitNormalModeInputText(':set nogdefault')
|
||||||
|
expect(atom.config.get('ex-mode.gdefault')).toBe(false)
|
||||||
|
|
||||||
describe "aliases", ->
|
describe "aliases", ->
|
||||||
it "calls the aliased function without arguments", ->
|
it "calls the aliased function without arguments", ->
|
||||||
ExClass.registerAlias('W', 'w')
|
ExClass.registerAlias('W', 'w')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue