Example #1
0
 it('should render usernames that are not the current one', () => {
   const { container } = renderComponent({
     item,
     currentUser: 'nikgraf',
   });
   expect(
     getByText(container, content => content.startsWith(item.owner.login)),
   ).not.toBeNull();
 });
Example #2
0
 it('should render the issue count', () => {
   const { container } = renderComponent({ item });
   expect(
     getByText(container, item.open_issues_count.toString(10)),
   ).not.toBeNull();
 });
Example #3
0
 it('should render the repo name', () => {
   const { container } = renderComponent({ item });
   expect(
     getByText(container, content => content.endsWith(item.name)),
   ).not.toBeNull();
 });