Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8e53fb47
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8e53fb47
编写于
4月 07, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 07, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8352 【account】【3.2release】checkAccountLabels 缺失断言问题
Merge pull request !8352 from 翟孟超/cherry-pick-1680597401
上级
b0b36cfd
ec2dca88
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
19 addition
and
9 deletion
+19
-9
account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js
...accountoperatetest/src/main/js/test/Authenticator.test.js
+9
-4
account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js
...nt/actsaccounttest/src/main/js/test/Authenticator.test.js
+10
-5
未找到文件。
account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js
浏览文件 @
8e53fb47
...
...
@@ -71,6 +71,7 @@ export default function ActsAccountAppAccess() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0100 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
name
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0100 removeAccount_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
...
...
@@ -99,6 +100,7 @@ export default function ActsAccountAppAccess() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0200 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0200 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
appAccountManager
.
removeAccount
(
name
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0200 removeAccount_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
...
...
@@ -126,7 +128,7 @@ export default function ActsAccountAppAccess() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0300 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
)
expect
(
data
).
assertEqual
(
false
)
;
appAccountManager
.
removeAccount
(
"
CheckAccountLabels_0300
"
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0300 removeAccount_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
...
...
@@ -152,6 +154,7 @@ export default function ActsAccountAppAccess() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 add_account_success
"
);
appAccountManager
.
checkAccountLabels
(
name
,
owner
,
[
'
level4
'
]).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
true
);
appAccountManager
.
removeAccount
(
name
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 delete_account_success
"
);
done
();
...
...
@@ -185,6 +188,7 @@ export default function ActsAccountAppAccess() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 add_account_success
"
);
appAccountManager
.
checkAccountLabels
(
name
,
owner
,
[
'
20-30
'
]).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
expect
(
account
.
Constants
.
KEY_REQUIRED_LABELS
).
assertEqual
(
'
requiredLabels
'
)
expect
(
account
.
Constants
.
KEY_BOOLEAN_RESULT
).
assertEqual
(
'
booleanResult
'
)
appAccountManager
.
removeAccount
(
name
).
then
((
data
)
=>
{
...
...
@@ -220,6 +224,7 @@ export default function ActsAccountAppAccess() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 add_account_success:
"
+
JSON
.
stringify
(
data
));
appAccountManager
.
checkAccountLabels
(
'
CheckAccountLabels_0600
'
,
owner
,
[
'
male
'
]).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
appAccountManager
.
removeAccount
(
'
CheckAccountLabels_0600
'
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 delete_account_success
"
);
done
();
...
...
account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js
浏览文件 @
8e53fb47
...
...
@@ -70,6 +70,7 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0100 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0100 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
true
);
appAccountManager
.
deleteAccount
(
name
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0100 deleteAccount_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
...
...
@@ -98,6 +99,7 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0200 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0200 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
appAccountManager
.
deleteAccount
(
name
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0200 deleteAccount_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
...
...
@@ -125,7 +127,7 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0300 err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
).
assertEqual
(
null
);
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0300 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
)
expect
(
data
).
assertEqual
(
false
)
;
appAccountManager
.
deleteAccount
(
"
CheckAccountLabels_0300
"
,
(
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0300 deleteAccount_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
).
assertEqual
(
null
);
...
...
@@ -151,6 +153,7 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 add_account_success
"
);
appAccountManager
.
checkAccountLabels
(
name
,
owner
,
[
'
level4
'
]).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
true
);
appAccountManager
.
deleteAccount
(
name
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 delete_account_success
"
);
}).
catch
((
err
)
=>
{
...
...
@@ -164,7 +167,7 @@ export default function ActsAccountAuthenticator() {
})
}).
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0400 add_account_err:
"
+
JSON
.
stringify
(
err
))
expect
(
err
.
code
!=
0
).
assertTrue
();
expect
(
).
assertFail
();
done
();
})
});
...
...
@@ -182,6 +185,7 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 add_account_success
"
);
appAccountManager
.
checkAccountLabels
(
name
,
owner
,
[
'
20-30
'
]).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0500 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
expect
(
account
.
Constants
.
KEY_REQUIRED_LABELS
).
assertEqual
(
'
requiredLabels
'
)
expect
(
account
.
Constants
.
KEY_BOOLEAN_RESULT
).
assertEqual
(
'
booleanResult
'
)
appAccountManager
.
deleteAccount
(
name
).
then
((
data
)
=>
{
...
...
@@ -215,6 +219,7 @@ export default function ActsAccountAuthenticator() {
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 add_account_success:
"
+
JSON
.
stringify
(
data
));
appAccountManager
.
checkAccountLabels
(
'
CheckAccountLabels_0600
'
,
owner
,
[
'
male
'
]).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertEqual
(
false
);
appAccountManager
.
deleteAccount
(
'
CheckAccountLabels_0600
'
).
then
((
data
)
=>
{
console
.
debug
(
"
====>ActsAccountCheckAccountLabels_0600 delete_account_success
"
);
}).
catch
((
err
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录