Add tests for tabnew command with arguments
This commit is contained in:
parent
e6ab4167c9
commit
cd4fb6f359
1 changed files with 8 additions and 0 deletions
|
|
@ -496,6 +496,14 @@ describe "the commands", ->
|
|||
submitNormalModeInputText('tabnew')
|
||||
expect(atom.workspace.open).toHaveBeenCalled()
|
||||
|
||||
it "opens a new tab for editing when provided an argument", ->
|
||||
spyOn(Ex, 'tabnew').andCallThrough()
|
||||
spyOn(Ex, 'tabedit')
|
||||
keydown(':')
|
||||
submitNormalModeInputText('tabnew tabnew-test')
|
||||
expect(Ex.tabedit)
|
||||
.toHaveBeenCalledWith(Ex.tabnew.calls[0].args...)
|
||||
|
||||
describe ":split", ->
|
||||
it "splits the current file upwards/downward", ->
|
||||
pane = atom.workspace.getActivePane()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue