Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4a983205
Commit
4a983205
authored
Jan 18, 2021
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix skipped spec
parent
291c2937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
spec/frontend/vue_mr_widget/mr_widget_options_spec.js
spec/frontend/vue_mr_widget/mr_widget_options_spec.js
+14
-21
No files found.
spec/frontend/vue_mr_widget/mr_widget_options_spec.js
View file @
4a983205
...
...
@@ -504,29 +504,22 @@ describe('MrWidgetOptions', () => {
});
describe
(
'
rendering relatedLinks
'
,
()
=>
{
beforeEach
((
done
)
=>
{
wrapper
.
vm
.
mr
.
relatedLinks
=
{
assignToMe
:
null
,
closing
:
`
<a class="close-related-link" href="#">
Close
</a>
`
,
mentioned
:
''
,
};
nextTick
(
done
);
beforeEach
(()
=>
{
createComponent
({
...
mockData
,
issues_links
:
{
closing
:
`
<a class="close-related-link" href="#">
Close
</a>
`
,
},
});
return
nextTick
();
});
// This test was previously written using the toBeDefined() matcher. In
// migrating this suite to @vue/test-utils, the matcher had to be
// changed, which causes this test to fail. This is because the
// toBeDefined() matcher was was incorrectly passing before: it checks
// that the result is not `undefined`, and since `querySelector` can only
// return `null` or an `HTMLElement`, it could never fail. So, at some
// point, the expected behavior was broken or removed in the
// implementation.
// eslint-disable-next-line jest/no-disabled-tests
it
.
skip
(
'
renders if there are relatedLinks
'
,
()
=>
{
it
(
'
renders if there are relatedLinks
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
.close-related-link
'
).
exists
()).
toBe
(
true
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment