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
71919170
Commit
71919170
authored
May 04, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up hard coded strings
* Use variables in test assertions
parent
ce04a2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ee/spec/frontend/license_compliance/components/app_spec.js
ee/spec/frontend/license_compliance/components/app_spec.js
+7
-5
No files found.
ee/spec/frontend/license_compliance/components/app_spec.js
View file @
71919170
...
...
@@ -196,6 +196,10 @@ describe('Project Licenses', () => {
});
describe
(
'
when the tabs are rendered
'
,
()
=>
{
const
pageInfo
=
{
total
:
1
,
};
beforeEach
(()
=>
{
createComponent
({
state
:
{
...
...
@@ -213,9 +217,7 @@ describe('Project Licenses', () => {
generatedAt
:
''
,
status
:
REPORT_STATUS
.
ok
,
},
pageInfo
:
{
total
:
1
,
},
pageInfo
,
},
options
:
{
provide
:
{
...
...
@@ -232,7 +234,7 @@ describe('Project Licenses', () => {
.
findAll
(
GlBadge
)
.
at
(
0
)
.
text
(),
).
toBe
(
'
1
'
);
).
toBe
(
pageInfo
.
total
.
toString
()
);
});
it
(
'
it renders the correct count in "Policies" tab
'
,
()
=>
{
...
...
@@ -241,7 +243,7 @@ describe('Project Licenses', () => {
.
findAll
(
GlBadge
)
.
at
(
1
)
.
text
(),
).
toBe
(
'
2
'
);
).
toBe
(
managedLicenses
.
length
.
toString
()
);
});
});
...
...
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