examples: use https github url

closes #3465
This commit is contained in:
Yaman Jain 2017-11-01 14:49:59 +05:30 committed by Douglas Christopher Wilson
parent 351396f971
commit 53bee2506d
2 changed files with 5 additions and 5 deletions

View File

@ -49,9 +49,9 @@ var apiKeys = ['foo', 'bar', 'baz'];
// these two objects will serve as our faux database
var repos = [
{ name: 'express', url: 'http://github.com/expressjs/express' }
, { name: 'stylus', url: 'http://github.com/learnboost/stylus' }
, { name: 'cluster', url: 'http://github.com/learnboost/cluster' }
{ name: 'express', url: 'https://github.com/expressjs/express' },
{ name: 'stylus', url: 'https://github.com/learnboost/stylus' },
{ name: 'cluster', url: 'https://github.com/learnboost/cluster' }
];
var users = [

View File

@ -53,7 +53,7 @@ describe('web-service', function(){
.get('/api/repos?api-key=foo')
.expect('Content-Type', 'application/json; charset=utf-8')
.expect(/"name":"express"/)
.expect(/"url":"http:\/\/github.com\/expressjs\/express"/)
.expect(/"url":"https:\/\/github.com\/expressjs\/express"/)
.expect(200, done)
})
})
@ -82,7 +82,7 @@ describe('web-service', function(){
.get('/api/user/loki/repos?api-key=foo')
.expect('Content-Type', 'application/json; charset=utf-8')
.expect(/"name":"stylus"/)
.expect(/"url":"http:\/\/github.com\/learnboost\/stylus"/)
.expect(/"url":"https:\/\/github.com\/learnboost\/stylus"/)
.expect(200, done)
})