Commit 7b325fa6 authored by Tim Zallmann's avatar Tim Zallmann

Added Spec for Vue Commit Item

parent 34d36967
...@@ -80,6 +80,8 @@ describe('diffs/components/commit_item', () => { ...@@ -80,6 +80,8 @@ describe('diffs/components/commit_item', () => {
expect(trimText(committerElement.textContent)).toEqual(expectedText); expect(trimText(committerElement.textContent)).toEqual(expectedText);
expect(nameElement).toHaveAttr('href', commit.author.web_url); expect(nameElement).toHaveAttr('href', commit.author.web_url);
expect(nameElement).toHaveText(commit.author.name); 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', () => { describe('without commit description', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment