Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
68214c04
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6013
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
68214c04
编写于
5月 22, 2024
作者:
M
mahaifeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[file]修改测试用例
上级
db6bf6f3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
pages/API/get-file-system-manager/get-file-system-manager.test.js
...I/get-file-system-manager/get-file-system-manager.test.js
+2
-2
pages/API/request-payment/reqeust-payment.test.js
pages/API/request-payment/reqeust-payment.test.js
+3
-3
未找到文件。
pages/API/get-file-system-manager/get-file-system-manager.test.js
浏览文件 @
68214c04
...
@@ -97,10 +97,10 @@ describe('ExtApi-FileManagerTest', () => {
...
@@ -97,10 +97,10 @@ describe('ExtApi-FileManagerTest', () => {
let
lastFailError
=
await
getData
(
'
lastFailError
'
)
let
lastFailError
=
await
getData
(
'
lastFailError
'
)
expect
(
lastFailError
.
errCode
).
toEqual
(
1300002
)
expect
(
lastFailError
.
errCode
).
toEqual
(
1300002
)
expect
(
lastFailError
.
errMsg
).
toEqual
(
'
no such file or directory
:unifile://usr/a/b/c
'
)
expect
(
lastFailError
.
errMsg
).
toEqual
(
'
no such file or directory
'
)
let
lastCompleteError
=
await
getData
(
'
lastCompleteError
'
)
let
lastCompleteError
=
await
getData
(
'
lastCompleteError
'
)
expect
(
lastCompleteError
.
errCode
).
toEqual
(
1300002
)
expect
(
lastCompleteError
.
errCode
).
toEqual
(
1300002
)
expect
(
lastCompleteError
.
errMsg
).
toEqual
(
'
no such file or directory
:unifile://usr/a/b/c
'
)
expect
(
lastCompleteError
.
errMsg
).
toEqual
(
'
no such file or directory
'
)
// 测试 recursive = true 期望文件夹创建成功
// 测试 recursive = true 期望文件夹创建成功
...
...
pages/API/request-payment/reqeust-payment.test.js
浏览文件 @
68214c04
...
@@ -18,8 +18,8 @@ describe("payment", () => {
...
@@ -18,8 +18,8 @@ describe("payment", () => {
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
await
page
.
waitFor
(
600
)
await
page
.
waitFor
(
600
)
});
});
//支付失败70
0711
//支付失败70
1100
it
(
"
errorcode70
0711
"
,
async
()
=>
{
it
(
"
errorcode70
1100
"
,
async
()
=>
{
let
orderInfo
=
let
orderInfo
=
"
service=
\"
mobile.securitypay.pay
\"
&partner=
\"
2088801273866834
\"
&_input_charset=
\"
UTF-8
\"
&out_trade_no=
\"
20240229115452
\"
&subject=
\"
DCloud项目捐赠
\"
&payment_type=
\"
1
\"
&seller_id=
\"
payservice@dcloud.io
\"
&total_fee=
\"
0.01
\"
&body=
\"
DCloud致力于打造HTML5最好的移动开发工具,包括终端的Runtime、云端的服务和IDE,同时提供各项配套的开发者服务。
\"
&it_b_pay=
\"
1d
\"
¬ify_url=
\"
http%3A%2F%2Fdemo.dcloud.net.cn%2Fpayment%2Falipay%2Fnotify.php
\"
&show_url=
\"
http%3A%2F%2Fwww.dcloud.io%2Fhelloh5%2F
\"
&sign=
\"
diZdkTX2iIP1oZh25UCGqx%2BpkViqAN8xdvMNSJF79aq0JiunX2mtr%2BbNlDsP0YL5x85KjULsqx%2Fq%2B5wij6eMoBVeJ%2BHhyjkwt0PYuwntroJ2Ho8bdUVEybBgOjy240NbCUtKmZzNRQAGsmLztKWzsg1srsQ8Se3Qi8KGDaOhqBs%3D
\"
&sign_type=
\"
RSA
\"
"
;
"
service=
\"
mobile.securitypay.pay
\"
&partner=
\"
2088801273866834
\"
&_input_charset=
\"
UTF-8
\"
&out_trade_no=
\"
20240229115452
\"
&subject=
\"
DCloud项目捐赠
\"
&payment_type=
\"
1
\"
&seller_id=
\"
payservice@dcloud.io
\"
&total_fee=
\"
0.01
\"
&body=
\"
DCloud致力于打造HTML5最好的移动开发工具,包括终端的Runtime、云端的服务和IDE,同时提供各项配套的开发者服务。
\"
&it_b_pay=
\"
1d
\"
¬ify_url=
\"
http%3A%2F%2Fdemo.dcloud.net.cn%2Fpayment%2Falipay%2Fnotify.php
\"
&show_url=
\"
http%3A%2F%2Fwww.dcloud.io%2Fhelloh5%2F
\"
&sign=
\"
diZdkTX2iIP1oZh25UCGqx%2BpkViqAN8xdvMNSJF79aq0JiunX2mtr%2BbNlDsP0YL5x85KjULsqx%2Fq%2B5wij6eMoBVeJ%2BHhyjkwt0PYuwntroJ2Ho8bdUVEybBgOjy240NbCUtKmZzNRQAGsmLztKWzsg1srsQ8Se3Qi8KGDaOhqBs%3D
\"
&sign_type=
\"
RSA
\"
"
;
await
page
.
setData
({
await
page
.
setData
({
...
@@ -29,6 +29,6 @@ describe("payment", () => {
...
@@ -29,6 +29,6 @@ describe("payment", () => {
await
page
.
waitFor
(
async
()
=>
{
await
page
.
waitFor
(
async
()
=>
{
return
await
page
.
data
(
'
complete
'
)
===
true
;
return
await
page
.
data
(
'
complete
'
)
===
true
;
});
});
expect
((
await
page
.
data
())[
'
errorCode
'
]).
toEqual
(
70
0711
)
expect
((
await
page
.
data
())[
'
errorCode
'
]).
toEqual
(
70
1100
)
});
});
});
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录