From da49c26b1b113a20cbf1ccf6f8a915477b2386d1 Mon Sep 17 00:00:00 2001 From: zhaimengchao Date: Mon, 29 May 2023 10:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90Account=E3=80=91=E3=80=90Master?= =?UTF-8?q?=E3=80=91Added=20NewInterface=20and=20OptionalParameters=20xts?= =?UTF-8?q?=20for=20the=20DistributedAccount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaimengchao --- .../src/main/js/test/ActsDSGetSet.test.js | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js b/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js index dc73cb664..ae0484250 100644 --- a/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js +++ b/account/OsAccountTest_js/src/main/js/test/ActsDSGetSet.test.js @@ -705,6 +705,40 @@ export default function ActsDAGetSetTest() { }) }) + /** + * @tc.number DistributedAccountEnum_0100 + * @tc.name Test distributedAccount.DistributedAccountStatus.NOT_LOGGED_IN. + * @tc.desc Test distributedAccount Enum. + */ + it('DistributedAccountEnum_0100', 0, async function (done) { + try { + expect(0).assertEqual(account.DistributedAccountStatus.NOT_LOGGED_IN) + console.debug("====>DistributedAccountEnum_0100 success:") + done() + } catch (err) { + console.debug("====>DistributedAccountEnum_0100 throw_err:" + JSON.stringify(err)) + expect().assertFail() + done() + } + }) + + /** + * @tc.number DistributedAccountEnum_0200 + * @tc.name Test distributedAccount.DistributedAccountStatus.LOGGED_IN. + * @tc.desc Test distributedAccount Enum. + */ + it('DistributedAccountEnum_0200', 0, async function (done) { + try { + expect(1).assertEqual(account.DistributedAccountStatus.LOGGED_IN) + console.debug("====>DistributedAccountEnum_0200 success:") + done() + } catch (err) { + console.debug("====>DistributedAccountEnum_0200 throw_err:" + JSON.stringify(err)) + expect().assertFail() + done() + } + }) + /** * @tc.number DistributedAccountOptionalParameter_0100 * @tc.name Test distributedAccount.setOsAccountDistributedInfo by callback. -- GitLab