From 0a9745b283a119588f461a2c39c438ed37f2321d Mon Sep 17 00:00:00 2001 From: yanglifeng1217 Date: Tue, 25 Jul 2023 18:18:53 +0800 Subject: [PATCH] Signed-off-by: yanglifeng1217 --- .../hap/src/main/js/test/PreferencesSyncJsunit.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js b/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js index 3e9fe9ff8..5601effc3 100644 --- a/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js +++ b/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js @@ -386,7 +386,7 @@ export default function PreferencesSyncTest() { */ it('SUB_DDM_Preferences_removePreferencesFromCacheSync_0100', 0, async function (done) { console.log("SUB_DDM_Preferences_removePreferencesFromCacheSync_0100 begin."); - mPreferences = await dataPreferences.getPreferences(context, NAME); + mPreferences = await data_preferences.getPreferences(context, NAME); await mPreferences.clearSync(); await mPreferences.putSync(KEY_TEST_STRING_ELEMENT, 'test') await mPreferences.getSync(KEY_TEST_STRING_ELEMENT, "defaultvalue") @@ -396,7 +396,7 @@ export default function PreferencesSyncTest() { expect().assertFail(); } console.log("flush done."); - await mPreferences.removePreferencesFromCacheSync(context, NAME); + await data_preferences.removePreferencesFromCacheSync(context, NAME); let value = mPreferences.getSync(KEY_TEST_STRING_ELEMENT, "defaultvalue") console.log("SUB_DDM_Preferences_removePreferencesFromCacheSync_0100 end." + value); expect('test').assertEqual(value); -- GitLab