Added Spec for Vue Commit Item

This commit is contained in:
Tim Zallmann 2019-01-06 08:59:39 +01:00
parent 34d3696783
commit 7b325fa60c
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ describe('diffs/components/commit_item', () => {
expect(trimText(committerElement.textContent)).toEqual(expectedText);
expect(nameElement).toHaveAttr('href', commit.author.web_url);
expect(nameElement).toHaveText(commit.author.name);
expect(nameElement).toHaveClass('js-user-link');
expect(nameElement).toHaveAttr('data-user-id', commit.author.id);
});
describe('without commit description', () => {