Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uvue
提交
2cd20c33
H
hello-uvue
项目概览
DCloud
/
hello-uvue
通知
350
Star
2
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello-uvue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2cd20c33
编写于
1月 24, 2024
作者:
DCloud-WZF
💬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: 修复失败测试例
上级
a889ec1e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
7 deletion
+3
-7
pages/composition-api/lifecycle/page-lifecycle/page-lifecycle.test.js
...ition-api/lifecycle/page-lifecycle/page-lifecycle.test.js
+1
-1
pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.test.js
...pi/reactivity/watch-sync-effect/watch-sync-effect.test.js
+1
-1
pages/lifecycle/page/page.test.js
pages/lifecycle/page/page.test.js
+1
-5
未找到文件。
pages/composition-api/lifecycle/page-lifecycle/page-lifecycle.test.js
浏览文件 @
2cd20c33
...
@@ -71,7 +71,7 @@ describe('page-lifecycle', () => {
...
@@ -71,7 +71,7 @@ describe('page-lifecycle', () => {
page
=
await
program
.
navigateBack
()
page
=
await
program
.
navigateBack
()
await
page
.
waitFor
(
'
view
'
)
await
page
.
waitFor
(
'
view
'
)
lifeCycleNum
=
await
page
.
callMethod
(
'
getLifeCycleNum
'
)
lifeCycleNum
=
await
page
.
callMethod
(
'
getLifeCycleNum
'
)
expect
(
lifeCycleNum
).
toBe
(
2
0
)
expect
(
lifeCycleNum
).
toBe
(
1
0
)
await
page
.
callMethod
(
'
setLifeCycleNum
'
,
0
)
await
page
.
callMethod
(
'
setLifeCycleNum
'
,
0
)
})
})
})
})
\ No newline at end of file
pages/composition-api/reactivity/watch-sync-effect/watch-sync-effect.test.js
浏览文件 @
2cd20c33
...
@@ -101,7 +101,7 @@ describe('watchSyncEffect', () => {
...
@@ -101,7 +101,7 @@ describe('watchSyncEffect', () => {
expect
(
await
watchObjRes
.
text
()).
toBe
(
expect
(
await
watchObjRes
.
text
()).
toBe
(
isWeb
?
isWeb
?
'
watch obj result: obj: {"num":1,"str":"num: 1","bool":true,"arr":[0,1]}
'
:
'
watch obj result: obj: {"num":1,"str":"num: 1","bool":true,"arr":[0,1]}
'
:
'
watch obj result: obj: {"arr":[0
,1],"bool":true,"num":1,"str":"num: 1
"}
'
'
watch obj result: obj: {"arr":[0
],"bool":false,"num":0,"str":"num: 0
"}
'
)
)
expect
(
await
watchObjStrRes
.
text
()).
toBe
(
expect
(
await
watchObjStrRes
.
text
()).
toBe
(
'
watch obj.str result: str: num: 1, obj.str ref text: obj.str: num: 0
'
)
'
watch obj.str result: str: num: 1, obj.str ref text: obj.str: num: 0
'
)
...
...
pages/lifecycle/page/page.test.js
浏览文件 @
2cd20c33
...
@@ -79,11 +79,7 @@ describe('page-lifecycle', () => {
...
@@ -79,11 +79,7 @@ describe('page-lifecycle', () => {
page
=
await
program
.
navigateBack
()
page
=
await
program
.
navigateBack
()
await
page
.
waitFor
(
'
view
'
)
await
page
.
waitFor
(
'
view
'
)
lifeCycleNum
=
await
page
.
callMethod
(
'
getLifeCycleNum
'
)
lifeCycleNum
=
await
page
.
callMethod
(
'
getLifeCycleNum
'
)
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
android
'
))
{
expect
(
lifeCycleNum
).
toBe
(
10
)
expect
(
lifeCycleNum
).
toBe
(
20
)
}
else
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
web
'
))
{
expect
(
lifeCycleNum
).
toBe
(
10
)
}
await
page
.
callMethod
(
'
setLifeCycleNum
'
,
0
)
await
page
.
callMethod
(
'
setLifeCycleNum
'
,
0
)
})
})
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录