From 23208c27370d58339fb39b381567a09218460852 Mon Sep 17 00:00:00 2001 From: Qilong Zhang Date: Mon, 6 Jun 2022 20:12:48 +0800 Subject: [PATCH] medialibrary:fix wrong mediatype in createAsset Signed-off-by: Qilong Zhang Change-Id: Id4eebd927a202d331d91d99a5f37509c2c39efc4 --- .../entry/src/main/ets/test/mediaLibraryTestPromise.test.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets b/multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets index fd3d5f761..73f85a8ca 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets +++ b/multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets @@ -843,7 +843,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext){ const fileAssets = await media.getFileAssets(filesfetchOp); const dataList = await fileAssets.getAllObject(); const asset1 = dataList[0]; - const creatAsset1 = await media.createAsset(fileType, fileName, path); + const creatAsset1 = await media.createAsset(audioType, fileName, path); const fd1 = await asset1.open('rw'); const creatAssetFd1 = await creatAsset1.open('rw'); await copyFile(fd1, creatAssetFd1); -- GitLab