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 />', () => {
82
82
beforeEach ( ( ) => changeName ( newName ) ) ;
83
83
84
84
it ( 'should save the name' , ( ) => {
85
- console . log ( 'component.state' ) ;
86
- console . log ( component . state ( ) ) ;
87
85
expect ( props . updateFileName ) . toBeCalledWith ( props . id , newName ) ;
88
86
} ) ;
89
87
} ) ;
@@ -158,6 +156,14 @@ describe('<FileNode />', () => {
158
156
component . setState ( { isEditing : true } ) ;
159
157
} ) ;
160
158
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
+
161
167
describe ( 'to a filename' , ( ) => {
162
168
const newName = 'filename.jsx' ;
163
169
beforeEach ( ( ) => changeName ( newName ) ) ;
You can’t perform that action at this time.
0 commit comments