Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uvue
提交
f9fedb54
H
hello-uvue
项目概览
DCloud
/
hello-uvue
通知
398
Star
3
Fork
10
代码
文件
提交
分支
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看板
You need to sign in or sign up before continuing.
提交
f9fedb54
编写于
3月 18, 2025
作者:
DCloud-WZF
💬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: 修复拼写错误
上级
3202838f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
33 deletion
+33
-33
pages/reactivity/core/reactive/reactive.test.js
pages/reactivity/core/reactive/reactive.test.js
+33
-33
未找到文件。
pages/reactivity/core/reactive/reactive.test.js
浏览文件 @
f9fedb54
...
@@ -59,44 +59,44 @@ describe('reactive', () => {
...
@@ -59,44 +59,44 @@ describe('reactive', () => {
const
updateArr1ReactiveBtn
=
await
page
.
$
(
'
#update-arr1-reactive-btn
'
)
const
updateArr1ReactiveBtn
=
await
page
.
$
(
'
#update-arr1-reactive-btn
'
)
await
updateArr1ReactiveBtn
.
tap
()
await
updateArr1ReactiveBtn
.
tap
()
await
page
.
waitFor
(
100
)
await
page
.
waitFor
(
100
)
expect
(
await
arr1
.
text
()).
toBe
(
JSON
.
stringify
([
4
,
5
,
6
]))
expect
(
await
arr1
.
text
()).
toBe
(
JSON
.
stringify
([
4
,
5
,
6
]))
const
arr2
=
await
page
.
$
(
'
#arr2
'
)
const
arr2
=
await
page
.
$
(
'
#arr2
'
)
expect
(
await
arr2
.
text
()).
toBe
(
'
1
'
)
expect
(
await
arr2
.
text
()).
toBe
(
'
1
'
)
const
updateArr2ForEachEffectBtn
=
await
page
.
$
(
'
#update-arr2-forEach-effect-btn
'
)
const
updateArr2ForEachEffectBtn
=
await
page
.
$
(
'
#update-arr2-forEach-effect-btn
'
)
await
updateArr2ForEachEffectBtn
.
tap
()
await
updateArr2ForEachEffectBtn
.
tap
()
await
page
.
waitFor
(
100
)
await
page
.
waitFor
(
100
)
expect
(
await
arr2
.
text
()).
toBe
(
'
2
'
)
expect
(
await
arr2
.
text
()).
toBe
(
'
2
'
)
const
arr3
=
await
page
.
$
(
'
#arr3
'
)
const
arr3
=
await
page
.
$
(
'
#arr3
'
)
expect
(
await
arr
2
.
text
()).
toBe
(
JSON
.
stringify
([
1
,
2
,
3
,
4
,
5
].
reverse
()))
expect
(
await
arr
3
.
text
()).
toBe
(
JSON
.
stringify
([
1
,
2
,
3
,
4
,
5
].
reverse
()))
const
map2
=
await
page
.
$
(
'
#map2
'
)
const
map2
=
await
page
.
$
(
'
#map2
'
)
expect
(
await
map2
.
text
()).
toBe
(
'
1
'
)
expect
(
await
map2
.
text
()).
toBe
(
'
1
'
)
const
updateMap2ForEachEffectBtn
=
await
page
.
$
(
'
#update-map2-forEach-effect-btn
'
)
const
updateMap2ForEachEffectBtn
=
await
page
.
$
(
'
#update-map2-forEach-effect-btn
'
)
await
updateMap2ForEachEffectBtn
.
tap
()
await
updateMap2ForEachEffectBtn
.
tap
()
await
page
.
waitFor
(
100
)
await
page
.
waitFor
(
100
)
expect
(
await
map2
.
text
()).
toBe
(
'
2
'
)
expect
(
await
map2
.
text
()).
toBe
(
'
2
'
)
const
map3
=
await
page
.
$
(
'
#map3
'
)
const
map3
=
await
page
.
$
(
'
#map3
'
)
expect
(
await
map3
.
text
()).
toBe
(
'
1
'
)
expect
(
await
map3
.
text
()).
toBe
(
'
1
'
)
const
updateMap3ForOfEffectBtn
=
await
page
.
$
(
'
#update-map3-forOf-effect-btn
'
)
const
updateMap3ForOfEffectBtn
=
await
page
.
$
(
'
#update-map3-forOf-effect-btn
'
)
await
updateMap3ForOfEffectBtn
.
tap
()
await
updateMap3ForOfEffectBtn
.
tap
()
await
page
.
waitFor
(
100
)
await
page
.
waitFor
(
100
)
expect
(
await
map3
.
text
()).
toBe
(
'
2
'
)
expect
(
await
map3
.
text
()).
toBe
(
'
2
'
)
const
set2
=
await
page
.
$
(
'
#set2
'
)
const
set2
=
await
page
.
$
(
'
#set2
'
)
expect
(
await
set2
.
text
()).
toBe
(
'
1
'
)
expect
(
await
set2
.
text
()).
toBe
(
'
1
'
)
const
updateSet2ForEachEffectBtn
=
await
page
.
$
(
'
#update-set2-forEach-effect-btn
'
)
const
updateSet2ForEachEffectBtn
=
await
page
.
$
(
'
#update-set2-forEach-effect-btn
'
)
await
updateSet2ForEachEffectBtn
.
tap
()
await
updateSet2ForEachEffectBtn
.
tap
()
await
page
.
waitFor
(
100
)
await
page
.
waitFor
(
100
)
expect
(
await
set2
.
text
()).
toBe
(
'
2
'
)
expect
(
await
set2
.
text
()).
toBe
(
'
2
'
)
const
set3
=
await
page
.
$
(
'
#set3
'
)
const
set3
=
await
page
.
$
(
'
#set3
'
)
expect
(
await
set3
.
text
()).
toBe
(
'
1
'
)
expect
(
await
set3
.
text
()).
toBe
(
'
1
'
)
const
updateSet3ForOfEffectBtn
=
await
page
.
$
(
'
#update-set3-forOf-effect-btn
'
)
const
updateSet3ForOfEffectBtn
=
await
page
.
$
(
'
#update-set3-forOf-effect-btn
'
)
await
updateSet3ForOfEffectBtn
.
tap
()
await
updateSet3ForOfEffectBtn
.
tap
()
await
page
.
waitFor
(
100
)
await
page
.
waitFor
(
100
)
expect
(
await
set3
.
text
()).
toBe
(
'
2
'
)
expect
(
await
set3
.
text
()).
toBe
(
'
2
'
)
})
})
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录