From 8d8eedab7b12155b0df62d9bf246b076172a2bb3 Mon Sep 17 00:00:00 2001 From: Maowen Date: Sat, 4 Dec 2021 17:09:59 +0800 Subject: [PATCH] Signed-off-by: Maowen --- .../js/default/test/StoragePromiseJsunit.test.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js index 309638b95..ade36a6bd 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js @@ -352,24 +352,14 @@ describe('storageTest', function () { */ it('testFlush00181', 0, async function (done) { mPref.putSync(KEY_TEST_STRING_ELEMENT, "test"); + mPref.flushSync(); const promise = mPref.flush(); promise.then((ret) => { - expect("test"). - assertEqual(mPref.getSync(KEY_TEST_STRING_ELEMENT, "default")); + expect("test").assertEqual(mPref.getSync(KEY_TEST_STRING_ELEMENT, "default")); }).catch((err) => { expect(null).assertFail(); }); await promise; done(); }) - - /** - * @tc.name const test - * @tc.number SUB_DDM_AppDataFWK_JSPreferences_Storage_0150 - * @tc.desc const test - */ - it('testConst001', 0, function () { - expect("80").assertEqual(mPref.MAX_KEY_LENHTH); - expect("8192").assertEqual(mPref.MAX_VALUE_LENHTH); - }) }) \ No newline at end of file -- GitLab