1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | var nock = require('nock');
|
16 |
|
17 | module.exports = function () {
|
18 |
|
19 |
|
20 | nock('http://localhost:80')
|
21 | .get('/api/v3/projects/5/hooks')
|
22 | .query({"private_token": "zRtVsmeznn7ySatTrnrp"})
|
23 | .reply(200, [], {
|
24 | server: 'nginx',
|
25 | date: 'Fri, 21 Aug 2015 16:08:18 GMT',
|
26 | 'content-type': 'application/json',
|
27 | 'content-length': '2',
|
28 | connection: 'close',
|
29 | status: '200 OK',
|
30 | link: '<http://localhost/api/v3/projects/5/hooks?page=1&per_page=0>; rel="first", <http://localhost/api/v3/projects/5/hooks?page=0&per_page=0>; rel="last"',
|
31 | etag: '"d751713988987e9331980363e24189ce"',
|
32 | 'cache-control': 'max-age=0, private, must-revalidate',
|
33 | 'x-request-id': 'de64f599-b582-4bcb-b68d-552c2441028e',
|
34 | 'x-runtime': '0.019459'
|
35 | });
|
36 | };
|