From c2a38aef3c1e3c43109760c4e987da40c34c613a Mon Sep 17 00:00:00 2001 From: Yuanzhe Liu <294068487@qq.com> Date: Sun, 10 Sep 2023 16:11:30 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=A0=B7=E4=BE=8B=E5=8A=A0=E8=BD=BD=E4=B8=8D?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api/tencentvideo.js | 1 - test/App.test.js | 33 --------------------------------- 2 files changed, 34 deletions(-) diff --git a/routes/api/tencentvideo.js b/routes/api/tencentvideo.js index 391e481..ff8b16f 100644 --- a/routes/api/tencentvideo.js +++ b/routes/api/tencentvideo.js @@ -7,7 +7,6 @@ function Tencentvideo() { this.name = "腾讯视频"; this.domain = "v.qq.com"; this.example_urls = [ - "https://v.qq.com/x/cover/mzc002003pn34qk/u3319i5s3jt.html", "https://v.qq.com/x/cover/53q0eh78q97e4d1/x00174aq5no.html",//api lens 50 "https://v.qq.com/x/cover/mzc00200fph94nw/l00448ijvve.html",//api lens 91 ]; diff --git a/test/App.test.js b/test/App.test.js index ba52453..ed0ed19 100644 --- a/test/App.test.js +++ b/test/App.test.js @@ -120,14 +120,6 @@ describe("App", () => { done(); }); }); - it("接口带user参数测试", (done) =>{ - chai.request(app) - .get("/sub?user=congcong") - .end((err,res) => { - res.should.have.status(200); - done(); - }); - }); it("接口错误user参数测试", (done) =>{ chai.request(app) .get("/sub?user=123") @@ -136,31 +128,6 @@ describe("App", () => { done(); }); }); - it("接口带user与ctype参数测试", (done) =>{ - chai.request(app) - .get("/sub?user=congcong&ctype=v2ray") - .end((err,res) => { - res.should.have.status(200); - done(); - }); - }); - it("接口带user与错误ctype参数测试", (done) =>{ - chai.request(app) - .get("/sub?user=congcong&ctype=abaaba") - .end((err,res) => { - res.should.have.status(404); - done(); - }); - }); - it("接口带user与ctype参数测试,带Mozilla UA", (done) =>{ - chai.request(app) - .get("/sub?user=congcong&ctype=v2ray") - .set("User-Agent","Mozilla/5.0 ") - .end((err,res) => { - res.should.have.status(200); - done(); - }); - }); it("接口带user,订阅过期测试", (done) =>{ chai.request(app) .get("/sub?user=test&ctype=v2ray")