Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uniCloud
提交
8c18d6e3
H
hello-uniCloud
项目概览
DCloud
/
hello-uniCloud
通知
299
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello-uniCloud
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
8c18d6e3
编写于
12月 08, 2023
作者:
A
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update test
上级
d34373fa
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
11 deletion
+11
-11
pages/clientDB/demo/demo.test.js
pages/clientDB/demo/demo.test.js
+6
-5
pages/clientDB/demo/demo.vue
pages/clientDB/demo/demo.vue
+3
-3
pages/user-info/detail.test.js
pages/user-info/detail.test.js
+0
-1
pages/user-info/list.test.js
pages/user-info/list.test.js
+1
-1
uniCloud-aliyun/cloudfunctions/ext-storage-co/index.obj.js
uniCloud-aliyun/cloudfunctions/ext-storage-co/index.obj.js
+1
-1
未找到文件。
pages/clientDB/demo/demo.test.js
浏览文件 @
8c18d6e3
...
...
@@ -38,11 +38,10 @@ describe('pages/clientDB/demo/demo.vue', () => {
return
userRole
===
'
user
'
})
console
.
log
(
"
用户:
"
,
user
);
if
(
user
){
//新增一条留言
const
userWrite
=
await
page
.
callMethod
(
'
submitComment
'
,
'
我是用户
'
)
expect
(
userWrite
.
id
).
toHaveLength
(
24
);
}
//新增一条留言
const
userWrite
=
await
page
.
callMethod
(
'
submitComment
'
,
'
我是用户
'
)
console
.
log
(
'
userWrite:
'
,
userWrite
);
expect
(
userWrite
.
id
).
toHaveLength
(
24
);
})
it
(
'
审核员
'
,
async
()
=>
{
await
roles
[
2
].
tap
()
...
...
@@ -59,6 +58,7 @@ describe('pages/clientDB/demo/demo.vue', () => {
if
(
auditor
){
//新增一条留言
const
auditorWrite
=
await
page
.
callMethod
(
'
submitComment
'
,
'
我是审核员11
'
)
console
.
log
(
'
auditorWrite:
'
,
auditorWrite
);
const
audId
=
auditorWrite
.
id
expect
(
audId
).
not
.
toBeUndefined
();
await
page
.
waitFor
(
500
)
...
...
@@ -98,6 +98,7 @@ describe('pages/clientDB/demo/demo.vue', () => {
if
(
admin
){
//管理员写入一条留言
const
adminWrite
=
await
page
.
callMethod
(
'
submitComment
'
,
'
我是管理员
'
)
console
.
log
(
'
adminWrite:
'
,
adminWrite
);
var
admId
=
adminWrite
.
id
expect
(
admId
).
not
.
toBeUndefined
();
await
page
.
waitFor
(
500
)
...
...
pages/clientDB/demo/demo.vue
浏览文件 @
8c18d6e3
...
...
@@ -131,12 +131,12 @@
async
getNoticeData
()
{
let
res
=
await
db
.
action
(
'
add_view_count
'
)
.
collection
(
'
opendb-notice
'
)
.
doc
(
"
65365ac355b3379a66170144
"
)
.
doc
(
"
65365ac355b3379a66170144
"
)
.
field
(
'
data,_id,update_time,view_count
'
)
.
get
();
console
.
log
(
"
res:
"
,
res
);
this
.
noticeData
=
res
.
result
.
data
[
0
]
this
.
options
.
where
=
`state == 1 && notice_id == "
${
this
.
noticeData
.
_id
}
"`
this
.
options
.
where
=
`state == 1 && notice_id == "
${
this
.
noticeData
.
_id
}
"`
},
async
clickIcon
(
e
,
item
)
{
if
(
e
)
{
...
...
@@ -231,7 +231,7 @@
}
this
.
$refs
.
dialog
.
close
()
return
await
db
.
collection
(
'
opendb-notice-comment
'
).
add
({
notice_id
:
this
.
noticeData
.
_id
,
notice_id
:
this
.
noticeData
.
_id
,
text
}).
then
(
res
=>
{
console
.
log
(
res
);
...
...
pages/user-info/detail.test.js
浏览文件 @
8c18d6e3
...
...
@@ -5,7 +5,6 @@ describe('pages/user-info/detail.vue', () => {
// page = await program.navigateTo('/pages/user-info/detail')
page
=
await
program
.
currentPage
()
await
page
.
waitFor
(
'
view
'
)
// console.log('page: ',page);
})
it
(
'
点击修改
'
,
async
()
=>
{
// expect.assertions(1);
...
...
pages/user-info/list.test.js
浏览文件 @
8c18d6e3
...
...
@@ -8,6 +8,7 @@ describe('pages/user-info/list.vue', () => {
})
it
(
'
点击fab跳转到添加页
'
,
async
()
=>
{
await
page
.
callMethod
(
'
fabClick
'
)
await
page
.
waitFor
(
500
)
currentPage
=
await
program
.
currentPage
()
expect
(
currentPage
.
path
).
toBe
(
'
pages/user-info/add
'
)
await
program
.
navigateBack
()
...
...
@@ -17,7 +18,6 @@ describe('pages/user-info/list.vue', () => {
await
items
[
0
].
tap
()
await
page
.
waitFor
(
500
)
currentPage
=
await
program
.
currentPage
()
// console.log('currentPage:---3 ',currentPage);
expect
(
currentPage
.
path
).
toBe
(
'
pages/user-info/detail
'
)
// await program.navigateBack()
// console.log('currentPage',await program.currentPage())
...
...
uniCloud-aliyun/cloudfunctions/ext-storage-co/index.obj.js
浏览文件 @
8c18d6e3
// 扩展存储自定义域名
var
domain
;
// 如果只有一个域名,域名可以直接写在这里
var
domain
=
'
jest-ext-storage-aliyun.dcloud.net.cn
'
;
// 如果只有一个域名,域名可以直接写在这里
module
.
exports
=
{
_before
()
{
if
(
!
domain
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录