Commit a51aa6ab authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Fixed issue card spec

parent 1b840452
...@@ -50,6 +50,7 @@ describe('Issue card component', () => { ...@@ -50,6 +50,7 @@ describe('Issue card component', () => {
list, list,
issue, issue,
issueLinkBase: '/test', issueLinkBase: '/test',
rootPath: '/',
}; };
}, },
components: { components: {
...@@ -59,7 +60,8 @@ describe('Issue card component', () => { ...@@ -59,7 +60,8 @@ describe('Issue card component', () => {
<issue-card <issue-card
:issue="issue" :issue="issue"
:list="list" :list="list"
:issue-link-base="issueLinkBase"></issue-card> :issue-link-base="issueLinkBase"
:root-path="rootPath"></issue-card>
`, `,
}); });
}); });
...@@ -136,7 +138,7 @@ describe('Issue card component', () => { ...@@ -136,7 +138,7 @@ describe('Issue card component', () => {
it('sets users path', () => { it('sets users path', () => {
expect( expect(
component.$el.querySelector('.card-assignee').getAttribute('href'), component.$el.querySelector('.card-assignee').getAttribute('href'),
).toBe('test'); ).toBe('/test');
}); });
it('renders avatar', () => { it('renders avatar', () => {
......
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