File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
client/components/__test__ Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ describe('<FileNode />', () => {
8282 beforeEach ( ( ) => changeName ( newName ) ) ;
8383
8484 it ( 'should save the name' , ( ) => {
85- console . log ( 'component.state' ) ;
86- console . log ( component . state ( ) ) ;
8785 expect ( props . updateFileName ) . toBeCalledWith ( props . id , newName ) ;
8886 } ) ;
8987 } ) ;
@@ -158,6 +156,14 @@ describe('<FileNode />', () => {
158156 component . setState ( { isEditing : true } ) ;
159157 } ) ;
160158
159+ describe ( 'to a foldername' , ( ) => {
160+ const newName = 'newfoldername' ;
161+ beforeEach ( ( ) => changeName ( newName ) ) ;
162+
163+ it ( 'should save' , ( ) => expect ( props . updateFileName ) . toBeCalledWith ( props . id , newName ) ) ;
164+ it ( 'should update name' , ( ) => expect ( getUpdatedName ( ) ) . toEqual ( newName ) ) ;
165+ } ) ;
166+
161167 describe ( 'to a filename' , ( ) => {
162168 const newName = 'filename.jsx' ;
163169 beforeEach ( ( ) => changeName ( newName ) ) ;
You can’t perform that action at this time.
0 commit comments