From c301847b485fcee67e286ea1c7ece8076b8a2cad Mon Sep 17 00:00:00 2001 From: anning Date: Mon, 25 Jul 2022 20:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=94=A8=E4=BE=8B=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: anning --- .../entry/src/main/ets/test/SettingUiJsunit.test.ets | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/settingsdata/settings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets b/settingsdata/settings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets index 2dad8a239..fda8237db 100644 --- a/settingsdata/settings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets +++ b/settingsdata/settings_ets/entry/src/main/ets/test/SettingUiJsunit.test.ets @@ -70,13 +70,13 @@ export default function settingUiJsunit() { done(); }); - it('settings_get_value_006', 0, async function () { + it('settings_get_value_006', 0, async function (done) { var name = 'settings.screen.brightness2'; var uri = settings.getUriSync(name); console.info("[settings_get_value_006] uri is: " + uri); var helper = featureAbility.acquireDataAbilityHelper(uri); let obj = { - "aa": aa + aa: "aa" } try { let value = settings.getValueSync(helper, name, obj); @@ -84,13 +84,13 @@ export default function settingUiJsunit() { expect(value).assertEqual("test getValueSync"); } catch (err) { console.error("[settings_get_value_006] error = " + err); - expect(err == "Error: assertion (valueType == napi_string) failed: Wrong argument type. String expected.") + expect(err == "Error: assertion (valueType == napi_string) failed: Wrong argument[2] type. String expected.") .assertTrue(); } done(); }); - it('settings_get_value_007', 0, async function () { + it('settings_get_value_007', 0, async function (done) { var name = 'settings.screen.brightness3'; var uri = settings.getUriSync(name); console.info("[settings_get_value_007] uri is: " + uri); @@ -261,7 +261,7 @@ export default function settingUiJsunit() { done(); }); - it('settings_get_value_0016', 0, async function () { + it('settings_get_value_0016', 0, async function (done) { let name = 1332; try { var uri = settings.getUriSync(name); -- GitLab