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
bc050db6
Commit
bc050db6
authored
Sep 03, 2020
by
pburdette
Committed by
Kamil Trzciński
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change spec to use toBe
Change spec to use toBe since we are checking primitives instead of objects.
parent
2759c75c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
spec/frontend/pipelines/graph/job_item_spec.js
spec/frontend/pipelines/graph/job_item_spec.js
+4
-6
No files found.
spec/frontend/pipelines/graph/job_item_spec.js
View file @
bc050db6
...
...
@@ -61,7 +61,7 @@ describe('pipeline graph job item', () => {
expect
(
link
.
attributes
(
'
href
'
)).
toBe
(
mockJob
.
status
.
details_path
);
expect
(
link
.
attributes
(
'
title
'
)).
to
Equal
(
`
${
mockJob
.
name
}
-
${
mockJob
.
status
.
label
}
`
);
expect
(
link
.
attributes
(
'
title
'
)).
to
Be
(
`
${
mockJob
.
name
}
-
${
mockJob
.
status
.
label
}
`
);
expect
(
wrapper
.
find
(
'
.ci-status-icon-success
'
).
exists
()).
toBe
(
true
);
...
...
@@ -85,7 +85,7 @@ describe('pipeline graph job item', () => {
expect
(
wrapper
.
find
(
'
.ci-status-icon-success
'
).
exists
()).
toBe
(
true
);
expect
(
wrapper
.
find
(
'
a
'
).
exists
()).
toBe
(
false
);
expect
(
trimText
(
wrapper
.
find
(
'
.ci-status-text
'
).
text
())).
to
Equal
(
mockJobWithoutDetails
.
name
);
expect
(
trimText
(
wrapper
.
find
(
'
.ci-status-text
'
).
text
())).
to
Be
(
mockJobWithoutDetails
.
name
);
});
it
(
'
should apply hover class and provided class name
'
,
()
=>
{
...
...
@@ -139,9 +139,7 @@ describe('pipeline graph job item', () => {
},
});
expect
(
wrapper
.
find
(
'
.js-job-component-tooltip
'
).
attributes
(
'
title
'
)).
toEqual
(
'
test - success
'
,
);
expect
(
wrapper
.
find
(
'
.js-job-component-tooltip
'
).
attributes
(
'
title
'
)).
toBe
(
'
test - success
'
);
});
});
...
...
@@ -151,7 +149,7 @@ describe('pipeline graph job item', () => {
job
:
delayedJobFixture
,
});
expect
(
findJobWithLink
().
attributes
(
'
title
'
)).
to
Equal
(
expect
(
findJobWithLink
().
attributes
(
'
title
'
)).
to
Be
(
`delayed job - delayed manual action (
${
wrapper
.
vm
.
remainingTime
}
)`
,
);
});
...
...
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