fix: port issue test

This commit is contained in:
Aravinth Manivannan 2023-09-19 01:33:45 +05:30
parent 776e037719
commit 9a6046c563
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -44,8 +44,8 @@ test("issue API ", async () => {
return n;
}
});
expect(notifications[0].subject.type).toEqual("Issue");
expect(issue.title).toEqual(notifications[0].subject.title);
expect(notification.subject.type).toEqual("Issue");
expect(issue.title).toEqual(notification.subject.title);
expect(issue.lazy_comments_data).toBeUndefined();
expect(issue.created_at instanceof Date).toBe(true);
expect(issue.updated_at instanceof Date).toBe(true);