Skip to content

Commit

Permalink
fix: broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Dec 4, 2019
1 parent 3efd110 commit 794be85
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 316 deletions.
4 changes: 2 additions & 2 deletions test/gateway/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ test('qx-rewrite-remote', async t => {
const app = gateway.createKoaApp(surgioServer);

const res = await request(app.callback())
.get('/qx-rewrite-remote?url=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Js.conf')
.get('/qx-rewrite-remote?url=https://gist.githubusercontent.com/geekdada/245b7de6af69a9d8e70e7c867c9fb0a9/raw/59303d7e8ee0e740f63cfff8946233f28909b1a8/Js.conf')
.expect(200)
.expect('content-type', 'text/plain; charset=utf-8')
.expect('cache-control', 'max-age=3600, s-maxage=3600');
Expand All @@ -228,7 +228,7 @@ test('qx-rewrite-remote with id', async t => {
const app = gateway.createKoaApp(surgioServer);

const res = await request(app.callback())
.get('/qx-rewrite-remote?id=abcde,fghijk&url=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Js.conf')
.get('/qx-rewrite-remote?id=abcde,fghijk&url=https://gist.githubusercontent.com/geekdada/245b7de6af69a9d8e70e7c867c9fb0a9/raw/59303d7e8ee0e740f63cfff8946233f28909b1a8/Js.conf')
.expect(200);

t.snapshot(res.text);
Expand Down
Loading

0 comments on commit 794be85

Please sign in to comment.