Feature: List issues
As a vision user I want to see a list of multiple repository issues in real time So that I can review and fix issues
Let's add a test to ./test/project.js
for our List issues
feature. This resource will GET all projects from the route project/:id/issues
and return a 200 OK
response:
describe('when requesting an available resource /project/:id/issues', function(){ it('should respond with 200', function(done){ this.timeout(5000); request(app) .get('/project/' + id + '/issues') .expect('Content-Type', /json/) .expect(200) .end(function (err, res) { var issue = _.first(JSON.parse(res.text)) assert(_.has(issue, 'title')); assert(_.has(issue, 'state')); assert(_.has(issue, 'updated_at')); assert(_.has(issue, 'login')); assert(_.has(issue, 'avatar_url')); assert(_.has(issue, 'ago')); assert(_.has(issue, 'repository')); done(); }); }); });
Let's implement the feature List issues
and add it to...