提交 1b69fc33 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(downloadFile): 优化测试逻辑

上级 bc429fbc
......@@ -123,7 +123,6 @@
firstIpv4: false,
success: () => {
this.jest_cookie_download(true)
this.jest_callback_triggred = true
},
fail: () => {
this.jest_result = false;
......@@ -142,7 +141,6 @@
firstIpv4: false,
success: () => {
this.jest_cookie_download(false)
this.jest_callback_triggred = true
},
fail: () => {
this.jest_result = false;
......@@ -155,6 +153,7 @@
url: "https://request.dcloud.net.cn/api/http/header/download",
success: () => {
this.jest_result = needCookie ? true : false;
this.jest_callback_triggred = true
},
fail: () => {
this.jest_result = needCookie ? false : true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册