提交 53e6f13f 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(downloadFile): 优化测试逻辑

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