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
803c7685
Commit
803c7685
authored
May 12, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in license compliance unit tests
* Rename findNameSeciton to findNameSection
parent
1dfa821d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/frontend/license_compliance/components/licenses_table_row_spec.js
.../license_compliance/components/licenses_table_row_spec.js
+4
-4
No files found.
ee/spec/frontend/license_compliance/components/licenses_table_row_spec.js
View file @
803c7685
...
...
@@ -17,7 +17,7 @@ describe('LicensesTableRow component', () => {
const
findLoading
=
()
=>
wrapper
.
find
(
GlSkeletonLoading
);
const
findContent
=
()
=>
wrapper
.
find
(
'
.js-license-row
'
);
const
findNameSec
it
on
=
()
=>
findContent
().
find
(
'
.section-30
'
);
const
findNameSec
ti
on
=
()
=>
findContent
().
find
(
'
.section-30
'
);
const
findComponentSection
=
()
=>
findContent
().
find
(
'
.section-70
'
);
beforeEach
(()
=>
{
...
...
@@ -61,7 +61,7 @@ describe('LicensesTableRow component', () => {
});
it
(
'
shows name
'
,
()
=>
{
const
nameLink
=
findNameSec
it
on
().
find
(
GlLink
);
const
nameLink
=
findNameSec
ti
on
().
find
(
GlLink
);
expect
(
nameLink
.
exists
()).
toBe
(
true
);
expect
(
nameLink
.
attributes
(
'
href
'
)).
toEqual
(
license
.
url
);
...
...
@@ -93,7 +93,7 @@ describe('LicensesTableRow component', () => {
});
it
(
'
renders the GlFriendlyWrap and GlLink components
'
,
()
=>
{
const
nameSection
=
findNameSec
it
on
();
const
nameSection
=
findNameSec
ti
on
();
expect
(
nameSection
.
find
(
GlLink
).
exists
()).
toBe
(
true
);
expect
(
nameSection
.
find
(
GlFriendlyWrap
).
exists
()).
toBe
(
true
);
...
...
@@ -112,7 +112,7 @@ describe('LicensesTableRow component', () => {
});
it
(
'
does not show url link for name
'
,
()
=>
{
const
nameSection
=
findNameSec
it
on
();
const
nameSection
=
findNameSec
ti
on
();
expect
(
nameSection
.
text
()).
toContain
(
license
.
name
);
expect
(
nameSection
.
find
(
GlLink
).
exists
()).
toBe
(
false
);
...
...
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