Skip to content

Commit

Permalink
test: Use smaller reddit endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Nov 25, 2017
1 parent 4168096 commit 35a22df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/fetch-https.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ describe('fetch: https', function () {
// This is a remote call which isn't great but it means we get a valid
// https certificate without having to pull any tricks.
this.timeout(2000);
return fetch('https://api.reddit.com/r/javascript/about.json')
.then(function (res) {
assert.equal(200, res.statusCode);
});
return fetch('https://api.reddit.com/user/ageitgey/about.json')
.json();
});

it('fails with self-signed https', function () {
Expand Down

0 comments on commit 35a22df

Please sign in to comment.