add gdefault option implementation test
This commit is contained in:
parent
d0059a7bb2
commit
c75395174f
1 changed files with 5 additions and 0 deletions
|
|
@ -718,6 +718,11 @@ describe "the commands", ->
|
||||||
it "set gdefault option", ->
|
it "set gdefault option", ->
|
||||||
openEx()
|
openEx()
|
||||||
atom.config.set('ex-mode.gdefault', true)
|
atom.config.set('ex-mode.gdefault', true)
|
||||||
|
submitNormalModeInputText(':substitute/a/x')
|
||||||
|
expect(editor.getText()).toEqual('xbcxABC\ndefdDEF\nabcaABC')
|
||||||
|
|
||||||
|
atom.commands.dispatch(editorElement, 'ex-mode:open')
|
||||||
|
atom.config.set('ex-mode.gdefault', true)
|
||||||
submitNormalModeInputText(':substitute/a/x/g')
|
submitNormalModeInputText(':substitute/a/x/g')
|
||||||
expect(editor.getText()).toEqual('xbcaABC\ndefdDEF\nabcaABC')
|
expect(editor.getText()).toEqual('xbcaABC\ndefdDEF\nabcaABC')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue