Skip to content

Commit

Permalink
test case updates for cloudflare.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Sep 27, 2020
1 parent e1f7d2c commit 2e7a118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cloudflare.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('post operation', async () => {
}, 15000); // should be done within 3 seconds.

test('youtube redirect 302', async () => {
const url = `${httpprefix}://${serverName}:${port}/https/www.youtube.com/channel/UCAq_xQV8pJ2Q_KOszzaYPBg/feed?disable_polymer=1`
const url = `${httpprefix}://${serverName}:${port}/http/www.youtube.com/channel/UCAq_xQV8pJ2Q_KOszzaYPBg/feed?disable_polymer=1`
const response = await axios({
method: 'get',
maxRedirects: 0,
Expand All @@ -44,5 +44,5 @@ test('youtube redirect 302', async () => {
})
// console.log(`${JSON.stringify(response.headers)}`)
//console.log(`${JSON.stringify(response.data)}`)
expect(response.headers['location'].indexOf(`https://m.youtube`)).toBe(-1)
expect(response.headers['location'].indexOf(`/https/www.youtube`)).not.toBe(-1)
}, 15000); // should be done within 3 seconds.

0 comments on commit 2e7a118

Please sign in to comment.