Commit 8cf1fedd authored by Phil Hughes's avatar Phil Hughes

Fixed failing Jest specs

Fixed failing specs due to template changes
parent 42428923
......@@ -91,12 +91,12 @@ describe('Diffs tree list component', () => {
expect(
getFileRows()
.at(0)
.text(),
.html(),
).toContain('index.js');
expect(
getFileRows()
.at(1)
.text(),
.html(),
).toContain('app');
});
......@@ -138,7 +138,7 @@ describe('Diffs tree list component', () => {
wrapper.vm.$store.state.diffs.renderTreeList = false;
return wrapper.vm.$nextTick().then(() => {
expect(wrapper.find('.file-row').text()).toContain('index.js');
expect(wrapper.find('.file-row').html()).toContain('index.js');
});
});
});
......
......@@ -5,11 +5,11 @@ exports[`File row header component adds multiple ellipsises after 40 characters
class="file-row-header bg-white sticky-top p-2 js-file-row-header"
title="app/assets/javascripts/merge_requests/widget/diffs/notes"
>
<span
<gl-truncate-stub
class="bold"
>
app/assets/javascripts/…/…/diffs/notes
</span>
position="middle"
text="app/assets/javascripts/merge_requests/widget/diffs/notes"
/>
</div>
`;
......@@ -18,11 +18,11 @@ exports[`File row header component renders file path 1`] = `
class="file-row-header bg-white sticky-top p-2 js-file-row-header"
title="app/assets"
>
<span
<gl-truncate-stub
class="bold"
>
app/assets
</span>
position="middle"
text="app/assets"
/>
</div>
`;
......@@ -31,10 +31,10 @@ exports[`File row header component trucates path after 40 characters 1`] = `
class="file-row-header bg-white sticky-top p-2 js-file-row-header"
title="app/assets/javascripts/merge_requests"
>
<span
<gl-truncate-stub
class="bold"
>
app/assets/javascripts/merge_requests
</span>
position="middle"
text="app/assets/javascripts/merge_requests"
/>
</div>
`;
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