diff --git a/spec/lintIssues.test.js b/spec/lintIssues.test.js index 3bfccf3..c58b182 100644 --- a/spec/lintIssues.test.js +++ b/spec/lintIssues.test.js @@ -11,6 +11,15 @@ describe('lintIssues', function () { labels: ['a label'], title: 'This issue has no comments', html_url: 'This is a URL' + }, + { + user: { + login: 'jimBOB' + }, + comments: 0, + labels: ['a label'], + title: 'This issue has no comments', + html_url: 'This is a URL' } ]; @@ -25,7 +34,7 @@ describe('lintIssues', function () { } }); - report.failures.length.should.eql(1); + report.failures.length.should.eql(2); }); it('should return no warnings if all issues are commented upon', function () { @@ -38,6 +47,15 @@ describe('lintIssues', function () { labels: [], title: 'This issue has no comments', html_url: 'This is a URL' + }, + { + user: { + login: 'jimBOB' + }, + comments: 1, + labels: [], + title: 'This issue has no comments', + html_url: 'This is a URL' } ]; @@ -96,6 +114,15 @@ describe('lintIssues', function () { labels: ['alabel'], title: 'This issue has no comments', html_url: 'This is a URL' + }, + { + user: { + login: 'jimBOB' + }, + comments: 1, + labels: ['alabel'], + title: 'This issue has no comments', + html_url: 'This is a URL' } ]; @@ -118,6 +145,15 @@ describe('lintIssues', function () { labels: [], title: 'This issue has no comments or labels', html_url: 'This is a URL' + }, + { + user: { + login: 'jimBOB' + }, + comments: 0, + labels: [], + title: 'This issue has no comments or labels', + html_url: 'This is a URL' } ]; @@ -141,6 +177,6 @@ describe('lintIssues', function () { } }); - report.failures.length.should.eql(2); + report.failures.length.should.eql(4); }); }); \ No newline at end of file