Skip to content

Commit 81e70b3

Browse files
author
Dennis Falling
committed
fixed issue tests
1 parent 0ce45ff commit 81e70b3

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

test/issue.test.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ describe('issue.test.js', function () {
4040
should.not.exists(err);
4141
row.id.should.equal(issueId);
4242
row.should.have.keys('id', 'iid', 'project_id', 'title', 'description', 'labels',
43-
'milestone', 'assignee', 'author', 'state',
44-
'updated_at', 'created_at');
43+
'milestone', 'assignee', 'author', 'state', 'updated_at', 'created_at',
44+
'subscribed', 'user_notes_count');
4545
done();
4646
});
4747
});
@@ -51,8 +51,8 @@ describe('issue.test.js', function () {
5151
.then(function (row) {
5252
row.id.should.equal(issueId);
5353
row.should.have.keys('id', 'iid', 'project_id', 'title', 'description', 'labels',
54-
'milestone', 'assignee', 'author', 'state',
55-
'updated_at', 'created_at');
54+
'milestone', 'assignee', 'author', 'state', 'updated_at', 'created_at',
55+
'subscribed', 'user_notes_count');
5656
done();
5757
})
5858
.catch(done);
@@ -62,8 +62,8 @@ describe('issue.test.js', function () {
6262
var row = yield client.thunk.issues.get({id: client.id, issue_id: issueId});
6363
row.id.should.equal(issueId);
6464
row.should.have.keys('id', 'iid', 'project_id', 'title', 'description', 'labels',
65-
'milestone', 'assignee', 'author', 'state',
66-
'updated_at', 'created_at');
65+
'milestone', 'assignee', 'author', 'state', 'updated_at', 'created_at',
66+
'subscribed', 'user_notes_count');
6767
});
6868
});
6969

@@ -75,8 +75,8 @@ describe('issue.test.js', function () {
7575
issues.length.should.above(0);
7676
var row = issues[0];
7777
row.should.have.keys('id', 'iid', 'project_id', 'title', 'description', 'labels',
78-
'milestone', 'assignee', 'author', 'state',
79-
'updated_at', 'created_at');
78+
'milestone', 'assignee', 'author', 'state', 'updated_at', 'created_at',
79+
'subscribed', 'user_notes_count');
8080
done();
8181
});
8282
});
@@ -139,7 +139,8 @@ describe('issue.test.js', function () {
139139
should.not.exists(err);
140140
rows.length.should.above(0);
141141
var row = rows[0];
142-
row.should.have.keys('id', 'body', 'author', 'created_at', 'attachment');
142+
row.should.have.keys('id', 'body', 'author', 'created_at', 'attachment',
143+
'updated_at', 'system', 'noteable_id', 'noteable_type', 'upvote', 'downvote');
143144
done();
144145
});
145146
});
@@ -148,7 +149,8 @@ describe('issue.test.js', function () {
148149
var rows = yield client.thunk.issues.listNotes({id: client.id, issue_id: issueId});
149150
rows.length.should.above(0);
150151
var row = rows[0];
151-
row.should.have.keys('id', 'body', 'author', 'created_at', 'attachment');
152+
row.should.have.keys('id', 'body', 'author', 'created_at', 'attachment',
153+
'updated_at', 'system', 'noteable_id', 'noteable_type', 'upvote', 'downvote');
152154
});
153155
});
154156

0 commit comments

Comments
 (0)