@@ -58,9 +58,12 @@ describe('Change contexts via cd', function() {
5858 doSwitch ( '..' , '/wsk' )
5959 doSwitch ( './actions' , '/wsk/actions' )
6060 doSwitch ( '..' , '/wsk' )
61- doSwitch ( '..' , '/' )
61+ // doSwitch('..', '/')
6262 doSwitch ( '/wsk/triggers' , '/wsk/triggers' )
6363
64+ bogusSwitch ( '/' ) // disallow switching to /
65+ bogusSwitch ( '/history' ) // disallow switching to /history, as it is a command handler not a subtree
66+
6467 doSwitch ( '/wsk/action' , '/wsk/actions' ) // test that we switch to /wsk/actions, even when asking to change to /wsk/action
6568 bogusSwitch ( 'actions' ) // type 'actions' while in /wsk/actions, and expect error
6669 doSwitch ( '/wsk/trigger' , '/wsk/triggers' ) // test that we switch to /wsk/triggers, even when asking to change to /wsk/trigger
@@ -86,9 +89,10 @@ describe('Change contexts via cd', function() {
8689 . catch ( common . oops ( this ) ) )
8790
8891 sidecar . close ( this )
89- doSwitch ( '../../' , '/' , undefined , actionName ) // actionName had better still be selected
90- doSwitch ( 'wsk/rules' , '/wsk/rules' , undefined , actionName ) // actionName had better still be selected
91- doSwitch ( '../..' , '/' , undefined , actionName ) // actionName had better still be selected
92+ bogusSwitch ( '../../' ) // this would cd us to /, which is disallowed
93+ //doSwitch('../../', '/', undefined, actionName) // actionName had better still be selected
94+ // doSwitch('wsk/rules', '/wsk/rules', undefined, actionName) // actionName had better still be selected
95+ //doSwitch('../..', '/', undefined, actionName) // actionName had better still be selected
9296
9397 bogusSwitch ( 'ffjdsjfioas990890890890' )
9498
@@ -104,7 +108,7 @@ describe('Change contexts via cd', function() {
104108 doSwitch ( '..' , '/wsk' , undefined , actionName ) // actionName had better still be selected
105109 doSwitch ( 'actions' , '/wsk/actions' , undefined , actionName ) // actionName had better still be selected
106110 doSwitch ( '..' , '/wsk' , undefined , actionName ) // actionName had better still be selected
107- doSwitch ( '..' , '/' , undefined , actionName ) // actionName had better still be selected
108- doSwitch ( 'wsk' , '/wsk' , undefined , actionName ) // actionName had better still be selected
111+ // doSwitch('..', '/', undefined, actionName) // actionName had better still be selected
112+ // doSwitch('wsk', '/wsk', undefined, actionName) // actionName had better still be selected
109113 bogusSwitch ( 'ufdufdasufdsa' , undefined , actionName ) // actionName had better still be selected
110114} )
0 commit comments