diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js index eeac1c91875e83572367bcce207a023796a7ef59..ff494abd00d5aff4e68525519b725134703ac7f6 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetCallBack2.test.js @@ -137,16 +137,10 @@ describe('fileAssetCallBack2.test.js', async function () { it('SUB_MEDIA_FILEASSET_commitModify_callback_003', 0, async function (done) { try { const path1 = await media.getPublicDirectory(mediaLibrary.DirectoryType.DIR_IMAGE); - - const path2 = await media.getPublicDirectory(mediaLibrary.DirectoryType.DIR_VIDEO); - const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); let relativePath = asset.relativePath; - let newrelativePath = path1; - if (relativePath == path1) { - newrelativePath = path2; - } + let newrelativePath = path1 + "new/"; asset.relativePath = newrelativePath; const id = asset.id; diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js index 8a11f4ed755d02642dc2e8cfb4109097922ced94..86f3b3b58b59f3e3489a1ccb7ef6d18a3211f34e 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetPromise2.test.js @@ -135,16 +135,10 @@ describe('fileAssetPromise2.test.js', async function () { it('SUB_MEDIA_FILEASSET_commitModify_promise_003', 0, async function (done) { try { const path1 = await media.getPublicDirectory(mediaLibrary.DirectoryType.DIR_IMAGE); - - const path2 = await media.getPublicDirectory(mediaLibrary.DirectoryType.DIR_VIDEO); - const fetchFileResult = await media.getFileAssets(imagesfetchOp); const asset = await fetchFileResult.getFirstObject(); let relativePath = asset.relativePath; - let newrelativePath = path1; - if (relativePath == path1) { - newrelativePath = path2; - } + let newrelativePath = path1 + "new/"; asset.relativePath = newrelativePath; const id = asset.id;