File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ test.serial('Delete a note', (t) => {
45
45
. then ( function doTest ( ) {
46
46
return createNote ( storageKey , input1 )
47
47
. then ( function createAttachmentFolder ( data ) {
48
- fs . mkdirSync ( path . join ( storagePath , attachmentManagement . DESTINATION_FOLDER , data . noteKey ) )
48
+ fs . mkdirSync ( path . join ( storagePath . path , attachmentManagement . DESTINATION_FOLDER , data . noteKey ) )
49
49
return data
50
50
} )
51
51
. then ( function ( data ) {
@@ -54,14 +54,14 @@ test.serial('Delete a note', (t) => {
54
54
} )
55
55
. then ( function assert ( data ) {
56
56
try {
57
- CSON . readFileSync ( path . join ( storagePath , 'notes' , data . noteKey + '.cson' ) )
57
+ CSON . readFileSync ( path . join ( storagePath . path , 'notes' , data . noteKey + '.cson' ) )
58
58
t . fail ( 'note cson must be deleted.' )
59
59
} catch ( err ) {
60
60
t . is ( err . code , 'ENOENT' )
61
61
}
62
62
} )
63
63
. then ( function assertAttachmentFolderDeleted ( data ) {
64
- const attachmentFolderPath = path . join ( storagePath , attachmentManagement . DESTINATION_FOLDER , data . noteKey )
64
+ const attachmentFolderPath = path . join ( storagePath . path , attachmentManagement . DESTINATION_FOLDER , data . noteKey )
65
65
t . assert ( fs . existsSync ( attachmentFolderPath ) === false , 'Attachment folder was not deleted' )
66
66
} )
67
67
} )
You can’t perform that action at this time.
0 commit comments