mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
parent
351396f971
commit
53bee2506d
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user